1. 12 2月, 2011 4 次提交
  2. 11 2月, 2011 1 次提交
  3. 10 2月, 2011 4 次提交
  4. 08 2月, 2011 12 次提交
  5. 07 2月, 2011 1 次提交
  6. 01 2月, 2011 2 次提交
  7. 31 1月, 2011 1 次提交
  8. 28 1月, 2011 8 次提交
    • J
      fsck: do not give up too early in fsck_dir() · ea6f0a23
      Junio C Hamano 提交于
      When there is a random garbage file whose name happens to be 38-byte
      long in a .git/objects/??/ directory, the loop terminated prematurely
      without marking all the other files that it hasn't checked in the
      readdir() loop.
      
      Treat such a file just like any other garbage file, and do not break out
      of the readdir() loop.
      
      While at it, replace repeated sprintf() calls to a single one outside the
      loop.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ea6f0a23
    • J
      fsck: drop unused parameter from traverse_one_object() · a1cdc251
      Junio C Hamano 提交于
      Also add comments to seemingly unsafe pointer dereferences, that
      are all safe.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a1cdc251
    • A
      Don't pass "--xhtml" to hightlight in gitweb.perl script. · d2d434be
      Adam Tkac 提交于
      The "--xhtml" option is supported only in highlight < 3.0. There is no option
      to enforce (X)HTML output format compatible with both highlight < 3.0 and
      highlight >= 3.0. However default output format is HTML so we don't need to
      explicitly specify it.
      Signed-off-by: NAdam Tkac <atkac@redhat.com>
      Helped-by: NJakub Narebski <jnareb@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d2d434be
    • J
      Merge branch 'maint' · 99e63ef2
      Junio C Hamano 提交于
      * maint:
        rebase -i: clarify in-editor documentation of "exec"
        tests: sanitize more git environment variables
        fast-import: treat filemodify with empty tree as delete
        rebase: give a better error message for bogus branch
        rebase: use explicit "--" with checkout
      
      Conflicts:
      	t/t9300-fast-import.sh
      99e63ef2
    • J
      rebase -i: clarify in-editor documentation of "exec" · 960ac5ff
      Jonathan Nieder 提交于
      The hints in the current "instruction sheet" template look like so:
      
       # Rebase 3f142468..a1d7e01 onto 3f142468
       #
       # Commands:
       #  p, pick = use commit
       #  r, reword = use commit, but edit the commit message
       #  e, edit = use commit, but stop for amending
       #  s, squash = use commit, but meld into previous commit
       #  f, fixup = like "squash", but discard this commit's log message
       #  x <cmd>, exec <cmd> = Run a shell command <cmd>, and stop if it fails
       #
       # If you remove a line here THAT COMMIT WILL BE LOST.
       # However, if you remove everything, the rebase will be aborted.
       #
      
      This does not make it clear that the format of each line is
      
      	<insn> <commit id> <explanatory text that will be printed>
      
      but the reader will probably infer that from the automatically
      generated pick examples above it.
      
      What about the "exec" instruction?  By analogy, I might imagine that
      the format of that line is "exec <command> <explanatory text>", and
      the "x <cmd>" hint does not address that question (at first I read it
      as taking an argument <cmd> that is the name of a shell).  Meanwhile,
      the mention of <cmd> makes the hints harder to scan as a table.
      
      So remove the <cmd> and add some words to remind the reader that
      "exec" runs a command named by the rest of the line.  To make room, it
      is left to the manpage to explain that that command is run using
      $SHELL and that nonzero status from that command will pause the
      rebase.
      
      Wording from Junio.
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      960ac5ff
    • J
      tests: sanitize more git environment variables · a1231de0
      Jeff King 提交于
      These variables should generally not be set in one's
      environment, but they do get set by rebase, which means
      doing an interactive rebase like:
      
        pick abcd1234 foo
        exec make test
      
      will cause false negatives in the test suite.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a1231de0
    • J
      Merge branch 'jn/fast-import-empty-tree-removal' into maint · 5ce32581
      Junio C Hamano 提交于
      * jn/fast-import-empty-tree-removal:
        fast-import: treat filemodify with empty tree as delete
      5ce32581
    • J
      fast-import: treat filemodify with empty tree as delete · 8fe533f6
      Jonathan Nieder 提交于
      Normal git processes do not allow one to build a tree with an empty
      subtree entry without trying hard at it.  This is in keeping with the
      general UI philosophy: git tracks content, not empty directories.
      
      v1.7.3-rc0~75^2 (2010-06-30) changed that by making it easy to include
      an empty subtree in fast-import's active commit:
      
      	M 040000 4b825dc642cb6eb9a060e54bf8d69288fbee4904 subdir
      
      One can trigger this by reading an empty tree (for example, the tree
      corresponding to an empty root commit) and trying to move it to a
      subtree.  It is better and more closely analogous to 'git read-tree
      --prefix' to treat such commands as requests to remove the subtree.
      Noticed-by: NDavid Barr <david.barr@cordelta.com>
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8fe533f6
  9. 27 1月, 2011 2 次提交
    • J
      rebase: give a better error message for bogus branch · 4ac5356c
      Jeff King 提交于
      When you give a non-existent branch to git-rebase, it spits
      out the usage. This can be confusing, since you may
      understand the usage just fine, but simply have made a
      mistake in the branch name.
      
      Before:
      
        $ git rebase origin bogus
        Usage: git rebase ...
      
      After:
      
        $ git rebase origin bogus
        fatal: no such branch: bogus
        Usage: git rebase ...
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4ac5356c
    • J
      rebase: use explicit "--" with checkout · 3b21a438
      Jeff King 提交于
      In the case of a ref/pathname conflict, checkout will
      already do the right thing and checkout the ref. However,
      for a non-existant ref, this has two advantages:
      
        1. If a file with that pathname exists, rebase will
           refresh the file from the index and then rebase the
           current branch instead of producing an error.
      
        2. If no such file exists, the error message using an
           explicit "--" is better:
      
             # before
             $ git rebase -i origin bogus
             error: pathspec 'bogus' did not match any file(s) known to git.
             Could not checkout bogus
      
             # after
             $ git rebase -i origin bogus
             fatal: invalid reference: bogus
             Could not checkout bogus
      
      The problems seem to be trigger-able only through "git
      rebase -i", as regular git-rebase checks the validity of the
      branch parameter as a ref very early on. However, it doesn't
      hurt to be defensive.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      3b21a438
  10. 25 1月, 2011 5 次提交