1. 21 3月, 2012 1 次提交
    • J
      merge: backport GIT_MERGE_AUTOEDIT support · d387868a
      Junio C Hamano 提交于
      Even though 1.7.9.x series does not open the editor by default
      when merging in general, it does do so in one occassion: when
      merging an annotated tag. And worse yet, there is no good way
      for older scripts to decline this.
      
      Backport the support for GIT_MERGE_AUTOEDIT environment variable
      from 1.7.10 track to help those stuck on 1.7.9.x maintenance
      track.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d387868a
  2. 13 3月, 2012 5 次提交
    • J
      Git 1.7.9.4 · a4603481
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a4603481
    • J
      Merge branch 'tr/maint-bundle-boundary' into maint · 92b7aacb
      Junio C Hamano 提交于
      "git bundle" did not record boundary commits correctly when there
      are many of them.
      
      By Thomas Rast
      * tr/maint-bundle-boundary:
        bundle: keep around names passed to add_pending_object()
        t5510: ensure we stay in the toplevel test dir
        t5510: refactor bundle->pack conversion
      92b7aacb
    • J
      Merge branch 'jc/maint-diff-patch-header' into maint · fce8b5d8
      Junio C Hamano 提交于
      "git diff-index" and its friends at the plumbing level showed the
      "diff --git" header and nothing else for a path whose cached stat
      info is dirty without actual difference when asked to produce a
      patch. This was a longstanding bug that we could have fixed long
      time ago.
      
      By Junio C Hamano
      * jc/maint-diff-patch-header:
        diff -p: squelch "diff --git" header for stat-dirty paths
        t4011: illustrate "diff-index -p" on stat-dirty paths
        t4011: modernise style
      fce8b5d8
    • J
      Merge branch 'jn/maint-do-not-match-with-unsanitized-searchtext' into maint · f629c233
      Junio C Hamano 提交于
      "gitweb" did use quotemeta() to prepare search string when asked to
      do a fixed-string project search, but did not use it by mistake and
      used the user-supplied string instead.
      
      By Jakub Narebski
      * jn/maint-do-not-match-with-unsanitized-searchtext:
        gitweb: Fix fixed string (non-regexp) project search
      f629c233
    • J
      Merge branch 'jc/am-3-nonstandard-popt' into maint · b91a13bb
      Junio C Hamano 提交于
      The code to synthesize the fake ancestor tree used by 3-way merge
      fallback in "git am" was not prepared to read a patch created with
      a non-standard -p<num> value.
      
      * jc/am-3-nonstandard-popt:
        test: "am -3" can accept non-standard -p<num>
        am -3: allow nonstandard -p<num> option
      b91a13bb
  3. 07 3月, 2012 5 次提交
  4. 06 3月, 2012 4 次提交
  5. 05 3月, 2012 9 次提交
  6. 03 3月, 2012 4 次提交
  7. 02 3月, 2012 7 次提交
    • T
      bundle: keep around names passed to add_pending_object() · efe4be12
      Thomas Rast 提交于
      The 'name' field passed to add_pending_object() is used to later
      deduplicate in object_array_remove_duplicates().
      
      git-bundle had a bug in this area since 18449ab0 (git-bundle: avoid
      packing objects which are in the prerequisites, 2007-03-08): it passed
      the name of each boundary object in a static buffer.  In other words,
      all that object_array_remove_duplicates() saw was the name of the
      *last* added boundary object.
      
      The recent switch to a strbuf in bc2fed49 (bundle: use a strbuf to scan
      the log for boundary commits, 2012-02-22) made this slightly worse: we
      now free the buffer at the end, so it is not even guaranteed that it
      still points into addressable memory by the time object_array_remove_
      duplicates looks at it.  On the plus side however, it was now
      detectable by valgrind.
      
      The fix is easy: pass a copy of the string to add_pending_object.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      efe4be12
    • T
      t5510: ensure we stay in the toplevel test dir · aa982856
      Thomas Rast 提交于
      The last test descended into a subdir without ever re-emerging, which
      is not so nice to the next test writer.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      aa982856
    • T
      t5510: refactor bundle->pack conversion · 61821aaa
      Thomas Rast 提交于
      It's not so much a conversion as a "strip everything up to and
      including the first blank line", but it will come in handy again.
      Signed-off-by: NThomas Rast <trast@student.ethz.ch>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      61821aaa
    • J
      diff -p: squelch "diff --git" header for stat-dirty paths · b3f01ff2
      Junio C Hamano 提交于
      The plumbing "diff" commands look at the working tree files without
      refreshing the index themselves for performance reasons (the calling
      script is expected to do that upfront just once, before calling one or
      more of them).  In the early days of git, they showed the "diff --git"
      header before they actually ask the xdiff machinery to produce patches,
      and ended up showing only these headers if the real contents are the same
      and the difference they noticed was only because the stat info cached in
      the index did not match that of the working tree. It was too late for the
      implementation to take the header that it already emitted back.
      
      But 3e97c7c6 (No diff -b/-w output for all-whitespace changes, 2009-11-19)
      introduced necessary logic to keep the meta-information headers in a
      strbuf and delay their output until the xdiff machinery noticed actual
      changes. This was primarily in order to generate patches that ignore
      whitespaces. When operating under "-w" mode, we wouldn't know if the
      header is needed until we actually look at the resulting patch, so it was
      a sensible thing to do, but we did not realize that the same reasoning
      applies to stat-dirty paths.
      
      Later, 296c6bb2 (diff: fix "git show -C -C" output when renaming a binary
      file, 2010-05-26) generalized this machinery and added must_show_header
      toggle.  This is turned on when the header must be shown even when there
      is no patch to be produced, e.g. only the mode was changed, or the path
      was renamed, without changing the contents.  However, when it did so, it
      still kept the special case for the "-w" mode, which meant that the
      plumbing would keep showing these phantom changes.
      
      This corrects this historical inconsistency by allowing the plumbing to
      omit paths that are only stat-dirty from its output in the same way as it
      handles whitespace only changes under "-w" option.
      
      The change in the behaviour can be seen in the updated test.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b3f01ff2
    • J
      t4011: illustrate "diff-index -p" on stat-dirty paths · 5597e84b
      Junio C Hamano 提交于
      The plumbing that looks at the working tree, i.e. "diff-index" and
      "diff-files", always emit the "diff --git a/path b/path" header lines
      without anything else for paths that are only stat-dirty (i.e. different
      only because the cached stat information in the index no longer matches
      that of the working tree, but the real contents are the same), when
      these commands are run with "-p" option to produce patches.
      
      Illustrate this current behaviour.  Also demonstrate that with the "-w"
      option, we (correctly) hold off showing a "diff --git" header until actual
      differences have been found.  This also suppresses the header for merely
      stat-dirty files, which is inconsistent.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5597e84b
    • J
      t4011: modernise style · 13a48998
      Junio C Hamano 提交于
      Match the style to more modern test scripts, namely:
      
       - The first line of each test has prereq, title and opening sq for the
         script body.  This makes the test shorter while reducing the need for
         backslashes.
      
       - Be prepared for the case in which the previous test may have failed.
         If a test wants to start from not having "frotz" that the previous test
         may have created, write "rm -f frotz", not "rm frotz".
      
       - Prepare the expected output inside your own test.
      
       - The order of comparison to check the result is "diff expected actual",
         so that the output will show how the output from the git you just broke
         is different from what is expected.
      
       - Write no SP between redirection '>' (or '<' for that matter) and the
         filename.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      13a48998
    • L
      Documentation fixes in git-config · e0a4aae8
      Libor Pechacek 提交于
      Variable names must start with an alphabetic character, regexp config key
      matching has its limits, sentence grammar.
      Signed-off-by: NLibor Pechacek <lpechacek@suse.cz>
      Acked-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e0a4aae8
  8. 29 2月, 2012 4 次提交
  9. 28 2月, 2012 1 次提交