1. 27 1月, 2007 4 次提交
  2. 26 1月, 2007 11 次提交
    • J
      Make sure we do not write bogus reflog entries. · 8ac65937
      Junio C Hamano 提交于
      The file format dictates that entries are LF terminated so
      the message cannot have one in it.  Chomp the message to make
      sure it only has a single line if necessary, while removing the
      leading whitespace.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8ac65937
    • S
      Remove unnecessary found variable from describe. · 8a8169c0
      Shawn O. Pearce 提交于
      Junio added the found variable to enforce commit date order when two
      tags have the same distance from the requested commit.  Except it is
      unnecessary as match_cnt is already used to record how many possible
      tags have been identified thus far.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      8a8169c0
    • J
      Use inttypes.h rather than stdint.h. · 007e2ba6
      Jason Riedy 提交于
      Older Solaris machines lack stdint.h but have inttypes.h.
      The standard has inttypes.h including stdint.h, so at worst
      this pollutes the namespace a bit.
      Signed-off-by: NJason Riedy <ejr@cs.berkeley.edu>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      007e2ba6
    • J
      Documentation: pack-refs --all vs default behaviour · af67e91c
      Junio C Hamano 提交于
      Document the recommended way to prime a repository with tons of
      references with 'pack-refs --all -prune'.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      af67e91c
    • J
      show-branch -g: default to HEAD · df373ea9
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      df373ea9
    • L
      Add dangling objects tips. · a9eefb3b
      Linus Torvalds 提交于
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      a9eefb3b
    • J
    • J
      diffcore-pickaxe: fix infinite loop on zero-length needle · e1b16116
      Jeff King 提交于
      The "contains" algorithm runs into an infinite loop if the needle string
      has zero length. The loop could be modified to handle this, but it makes
      more sense to simply have an empty needle return no matches. Thus, a
      command like
        git log -S
      produces no output.
      
      We place the check at the top of the function so that we get the same
      results with or without --pickaxe-regex. Note that until now,
        git log -S --pickaxe-regex
      would match everything, not nothing.
      
      Arguably, an empty pickaxe string should simply produce an error
      message; however, this is still a useful assertion to add to the
      algorithm at this layer of the code.
      
      Noticed by Bill Lear.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      e1b16116
    • J
      Allow non-developer to clone, checkout and fetch more easily. · cb280e10
      Junio C Hamano 提交于
      The code that uses committer_info() in reflog can barf and die
      whenever it is asked to update a ref.  And I do not think
      calling ignore_missing_committer_name() upfront like recent
      receive-pack did in the aplication is a reasonable workaround.
      
      What the patch does.
      
       - git_committer_info() takes one parameter.  It used to be "if
         this is true, then die() if the name is not available due to
         bad GECOS, otherwise issue a warning once but leave the name
         empty".  The reason was because we wanted to prevent bad
         commits from being made by git-commit-tree (and its
         callers).  The value 0 is only used by "git var -l".
      
         Now it takes -1, 0 or 1.  When set to -1, it does not
         complain but uses the pw->pw_name when name is not
         available.  Existing 0 and 1 values mean the same thing as
         they used to mean before.  0 means issue warnings and leave
         it empty, 1 means barf and die.
      
       - ignore_missing_committer_name() and its existing caller
         (receive-pack, to set the reflog) have been removed.
      
       - git-format-patch, to come up with the phoney message ID when
         asked to thread, now passes -1 to git_committer_info().  This
         codepath uses only the e-mail part, ignoring the name.  It
         used to barf and die.  The other call in the same program
         when asked to add signed-off-by line based on committer
         identity still passes 1 to make sure it barfs instead of
         adding a bogus s-o-b line.
      
       - log_ref_write in refs.c, to come up with the name to record
         who initiated the ref update in the reflog, passes -1.  It
         used to barf and die.
      
      The last change means that git-update-ref, git-branch, and
      commit walker backends can now be used in a repository with
      reflog by somebody who does not have the user identity required
      to make a commit.  They all used to barf and die.
      
      I've run tests and all of them seem to pass, and also tried "git
      clone" as a user whose GECOS is empty -- git clone works again
      now (it was broken when reflog was enabled by default).
      
      But this definitely needs extra sets of eyeballs.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      cb280e10
    • S
      contrib/emacs/vc-git.el: support vc-version-other-window · fd73423f
      Sam Vilain 提交于
      Currently, the vc-git-checkout function uses `git checkout' to fetch a
      file from the git repository to the working copy.  However, it is
      completely ignoring the input argument that specifies the destination
      file.  `git-checkout' does not support specifying this, so we have to
      use `git-cat-file', capture the output in a buffer and then save it.
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      fd73423f
    • L
      Fix seriously broken "git pack-refs" · 1b555932
      Linus Torvalds 提交于
      Do *NOT* try this on a repository you care about:
      
      	git pack-refs --all --prune
      	git pack-refs
      
      because while the first "pack-refs" does the right thing, the second
      pack-refs will totally screw you over.
      
      This is because the second one tries to pack only tags; we should
      also pack what are already packed -- otherwise we would lose them.
      
      [jc: with an additional test]
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      1b555932
  3. 25 1月, 2007 14 次提交
  4. 24 1月, 2007 2 次提交
  5. 23 1月, 2007 9 次提交