git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mathias Lafeldt <misfire@debugon.org>
To: Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>
Cc: samilkarahan <samilkarahan@yahoo.com>, git@vger.kernel.org
Subject: Re: which git commands is  correponding to "svnlook diff -t" and "svnlook log -t"?
Date: Tue, 02 Nov 2010 10:13:36 +0100	[thread overview]
Message-ID: <4CCFD640.6070909@debugon.org> (raw)
In-Reply-To: <vpq8w1cxfkk.fsf@bauges.imag.fr>

Matthieu Moy wrote:
> samilkarahan <samilkarahan@yahoo.com> writes:
> 
>> Hi,
>>
>> I have developed pre-commit hook, but it only run for svn hook. 
>>
>> I want to run it for git hook,But I don't know git well like svn ,so 
>>
>> I haven't found corresponding git command to svn commands which are "svnlook
>> diff -t" and "svnlook log -t".
>>
>> these commands take two parameter in svn.
> 
> What do these commands do in SVN?
> 

$ svnlook help diff
diff: usage: svnlook diff REPOS_PATH

Print GNU-style diffs of changed files and properties.

Valid options:
  -r [--revision] ARG      : specify revision number ARG
  -t [--transaction] ARG   : specify transaction name ARG
  --no-diff-deleted        : do not print differences for deleted files
  --no-diff-added          : do not print differences for added files
  --diff-copy-from         : print differences against the copy source
  -x [--extensions] ARG    : Default: '-u'. When Subversion is invoking an
                             external diff program, ARG is simply passed
along
                             to the program. But when Subversion is
using its
                             default internal diff implementation, or when
                             Subversion is displaying blame annotations, ARG
                             could be any of the following:
                                -u (--unified):
                                   Output 3 lines of unified context.
                                -b (--ignore-space-change):
                                   Ignore changes in the amount of white
space.
                                -w (--ignore-all-space):
                                   Ignore all white space.
                                --ignore-eol-style:
                                   Ignore changes in EOL style

$ svnlook help log
log: usage: svnlook log REPOS_PATH

Print the log message.

Valid options:
  -r [--revision] ARG      : specify revision number ARG
  -t [--transaction] ARG   : specify transaction name ARG


Though I have no idea what "transaction" means here?

Apart from that, I guess "svnlook log" corresponds to "git log" and
"svnlook diff" to "git log -p".

-Mathias

  reply	other threads:[~2010-11-02  9:13 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-02  7:03 which git commands is correponding to "svnlook diff -t" and "svnlook log -t"? samilkarahan
2010-11-02  9:03 ` Matthieu Moy
2010-11-02  9:13   ` Mathias Lafeldt [this message]
2010-11-11  8:47 ` Jan Hudec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CCFD640.6070909@debugon.org \
    --to=misfire@debugon.org \
    --cc=Matthieu.Moy@grenoble-inp.fr \
    --cc=git@vger.kernel.org \
    --cc=samilkarahan@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).