1. 06 2月, 2007 1 次提交
  2. 31 1月, 2007 1 次提交
    • S
      Merge branch 'master' into sp/gfi · 76db9dec
      Shawn O. Pearce 提交于
      git-fast-import requires use of inttypes.h, but the master branch has
      added it to git-compat-util differently than git-fast-import originally
      had used it.  This merge back of master to the fast-import topic is to
      get (and use) inttypes.h the way master is using it.
      
      This is a partially evil merge to remove the call to setup_ident(),
      as the master branch now contains a change which makes this implicit
      and therefore removed the function declaration. (commit 01754769).
      
      Conflicts:
      
      	git-compat-util.h
      76db9dec
  3. 30 1月, 2007 6 次提交
  4. 29 1月, 2007 14 次提交
  5. 28 1月, 2007 9 次提交
    • S
      Compute accurate distances in git-describe before output. · 1b600e65
      Shawn O. Pearce 提交于
      My prior change to git-describe attempts to print the distance
      between the input commit and the best matching tag, but this distance
      was usually only an estimate as we always aborted revision walking
      as soon as we overflowed the configured limit on the number of
      possible tags (as set by --candidates).
      
      Displaying an estimated distance is not very useful and can just be
      downright confusing.  Most users (heck, most Git developers) don't
      immediately understand why this distance differs from the output
      of common tools such as `git rev-list | wc -l`.  Even worse, the
      estimated distance could change in the future (including decreasing
      despite no rebase occuring) if we find more possible tags earlier
      on during traversal.  (This could happen if more tags are merged
      into the branch between queries.)  These factors basically make an
      estimated distance useless.
      
      Fortunately we are usually most of the way through an accurate
      distance computation by the time we abort (due to reaching the
      current --candidates limit).  This means we can simply finish
      counting out the revisions still in our commit queue to present
      the accurate distance at the end.  The number of commits remaining
      in the commit queue is probably less than the number of commits
      already traversed, so finishing out the count is not likely to take
      very long.  This final distance will then always match the output of
      `git rev-list | wc -l`.
      
      We can easily reduce the total number of commits that need to be
      walked at the end by stopping as soon as all of the commits in the
      commit queue are flagged as being merged into the already selected
      best possible tag.  If that's true then there are no remaining
      unseen commits which can contribute to our best possible tag's
      depth counter, so further traversal is useless.
      
      Basic testing on my Mac OS X system shows there is no noticable
      performance difference between this accurate distance counting
      version of git-describe and the prior version of git-describe,
      at least when run on git.git.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1b600e65
    • J
      Update describe documentation. · 1891261e
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1891261e
    • S
      Teach git-describe to display distances from tags. · 237fb6ca
      Shawn O. Pearce 提交于
      If you get two different describes at different
      times from a non-rewinding branch and they both come up with the same
      tag name, you can tell which is the 'newer' one by distance.  This is
      rather common in practice, so its incredibly useful.
      
      [jc: still needs documentation and fixups when traversal gives up
       early.]
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      237fb6ca
    • J
      git-blame --porcelain: quote filename in c-style when needed. · 46e5e69d
      Junio C Hamano 提交于
      Otherwise a pathname that has funny characters such as LF would
      screw up the parsing programs of the output.
      
      Strictly speaking, this is not backward compatible, but the
      current output for pathnames that have embedded LF and such
      cannot be sanely parsed anyway, and pathnames that only use
      characters from the portable pathname character set won't be
      affected.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      46e5e69d
    • L
      git-blame --incremental · 717d1462
      Linus Torvalds 提交于
      This adds --incremental option to help GUI porcelains to show
      the result from git-blame incrementally.  The output gives the
      origin information in the same format as the porcelain format.
      The first line has commit object name, the line number of the
      first line in the group in the original file, the line number of
      that file in the final image, and number of lines in the group.
      Then subsequent lines show the metainformation for the commit
      when the commit is shown for the first time, except the filename
      information is always shown (we cannot even make it conditional
      to -C option as blame always follows the renaming of the file
      wholesale).
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      717d1462
    • J
      Don't force everybody to call setup_ident(). · 01754769
      Junio C Hamano 提交于
      Back when only handful commands that created commit and tag were
      the only users of committer identity information, it made sense
      to explicitly call setup_ident() to pre-fill the default value
      from the gecos information.  But it is much simpler for programs
      to make the call automatic when get_ident() is called these days,
      since many more programs want to use the information when updating
      the reflog.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      01754769
    • N
      git-log -g --pretty=oneline should display the reflog message · 903b45fe
      Nicolas Pitre 提交于
      In the context of reflog output the reflog message is more useful than
      the commit message's first line.  When relevant the reflog message
      will contain that line anyway.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      903b45fe
    • B
      Document --check option to git diff. · 16507fcf
      Bill Lear 提交于
      Signed-off-by: NBill Lear <rael@zopyra.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      16507fcf
    • A
      Allow the tag signing key to be specified in the config file · d67778ec
      Andy Parkins 提交于
      I did this:
      
        $ git tag -s test-sign
        gpg: skipped "Andy Parkins <andyparkins@gmail.com>": secret key not available
        gpg: signing failed: secret key not available
        failed to sign the tag with GPG.
      
      The problem is that I have used the comment field in my key's UID
      definition.
      
        $ gpg --list-keys andy
        pub   1024D/4F712F6D 2003-08-14
        uid                  Andy Parkins (Google) <andyparkins@gmail.com>
      
      So when git-tag looks for "Andy Parkins <andyparkins@gmail.com>";
      obviously it's not going to be found.
      
      There shouldn't be a requirement that I use the same form of my name in
      my git repository and my gpg key - I might want to be formal (Andrew) in
      my gpg key and informal (Andy) in the repository.  Further I might have
      multiple keys in my keyring, and might want to use one that doesn't
      match up with the address I use in commit messages.
      
      This patch adds a configuration entry "user.signingkey" which, if
      present, will be passed to the "-u" switch for gpg, allowing the tag
      signing key to be overridden.  If the entry is not present, the fallback
      is the original method, which means existing behaviour will continue
      untouched.
      Signed-off-by: NAndy Parkins <andyparkins@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      d67778ec
  6. 27 1月, 2007 6 次提交
  7. 26 1月, 2007 3 次提交