1. 16 8月, 2012 2 次提交
  2. 07 8月, 2012 12 次提交
  3. 31 7月, 2012 8 次提交
    • J
      Git 1.7.11.4 · 0e4c8822
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0e4c8822
    • J
      Merge branch 'jk/maint-commit-document-editmsg' into maint · f17adbce
      Junio C Hamano 提交于
      "$GIT_DIR/COMMIT_EDITMSG" file that is used to hold the commit log
      message user edits was not documented.
      
      * jk/maint-commit-document-editmsg:
        commit: document the temporary commit message file
      f17adbce
    • J
      Merge branch 'jk/maint-advise-vaddf' into maint · 5c992a13
      Junio C Hamano 提交于
      The advise() function did not use varargs correctly to format
      its message.
      
      * jk/maint-advise-vaddf:
        advice: pass varargs to strbuf_vaddf, not strbuf_addf
      5c992a13
    • J
      Merge branch 'kk/maint-commit-tree' into maint · 2e3710bd
      Junio C Hamano 提交于
      "git commit-tree" learned a more natural "-p <parent> <tree>" order
      of arguments long time ago, but recently forgot it by mistake.
      
      * kk/maint-commit-tree:
        Revert "git-commit-tree(1): update synopsis"
        commit-tree: resurrect command line parsing updates
      2e3710bd
    • J
      Merge branch 'jv/maint-no-ext-diff' into maint · 70f6be7a
      Junio C Hamano 提交于
      "git diff --no-ext-diff" did not output anything for a typechange
      filepair when GIT_EXTERNAL_DIFF is in effect.
      
      * jv/maint-no-ext-diff:
        diff: test precedence of external diff drivers
        diff: correctly disable external_diff with --no-ext-diff
      70f6be7a
    • J
      Merge branch 'pg/maint-1.7.9-am-where-is-patch' into maint · 9b67f560
      Junio C Hamano 提交于
      When "git am" failed, old timers knew to check .git/rebase-apply/patch
      to see what went wrong, but we never told the users about it.
      
      * pg/maint-1.7.9-am-where-is-patch:
        am: indicate where a failed patch is to be found
      9b67f560
    • J
      Merge branch 'jl/maint-1.7.10-recurse-submodules-with-symlink' into maint · 8ba105dd
      Junio C Hamano 提交于
      When "git submodule add" clones a submodule repository, it can get
      confused where to store the resulting submodule repository in the
      superproject's .git/ directory when there is a symbolic link in the
      path to the current directory.
      
      * jl/maint-1.7.10-recurse-submodules-with-symlink:
        submodules: don't stumble over symbolic links when cloning recursively
      8ba105dd
    • J
      Merge branch 'jc/maint-filter-branch-epoch-date' into maint · 80ffb757
      Junio C Hamano 提交于
      In 1.7.9 era, we taught "git rebase" about the raw timestamp format
      but we did not teach the same trick to "filter-branch", which rolled
      a similar logic on its own.
      
      * jc/maint-filter-branch-epoch-date:
        t7003: add test to filter a branch with a commit at epoch
        date.c: Fix off by one error in object-header date parsing
        filter-branch: do not forget the '@' prefix to force git-timestamp
      80ffb757
  4. 30 7月, 2012 2 次提交
    • R
      t7810-*.sh: Remove redundant test · 4ca94538
      Ramsay Jones 提交于
      Since commit bbc09c22 ("grep: rip out support for external grep",
      12-01-2010), test number 60 ("grep -C1 hunk mark between files") is
      essentially the same as test number 59.
      
      Test 59 was intended to verify the behaviour of git-grep resulting
      from multiple invocations of an external grep. As part of the test,
      it creates and adds 1024 files to the index, which is now wasted
      effort.
      
      Remove test 59, since it is now redundant.
      Signed-off-by: NRamsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4ca94538
    • H
      link_alt_odb_entry: fix read over array bounds reported by valgrind · cb2912c3
      Heiko Voigt 提交于
      pfxlen can be longer than the path in objdir when relative_base
      contains the path to gits object directory.  Here we are interested
      in checking if ent->base[] (the part that corresponds to .git/objects)
      is the same string as objdir, and the code NUL-terminated ent->base[]
      to
      
      	LEADING PATH\0XX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\0
      
      in preparation for these "duplicate check" step (before we return
      from the function, the first NUL is turned into '/' so that we can
      fill XX when probing for loose objects).  All we need to do is to
      compare the string with the path to our object directory.
      Signed-off-by: NHeiko Voigt <hvoigt@hvoigt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      cb2912c3
  5. 26 7月, 2012 1 次提交
    • J
      checkout: don't confuse ref and object flags · add416a6
      Jeff King 提交于
      When we are leaving a detached HEAD, we do a revision traversal to
      check whether we are orphaning any commits, marking the commit we're
      leaving as the start of the traversal, and all existing refs as
      uninteresting.
      
      Prior to commit 468224e5, we did so by calling for_each_ref, and
      feeding each resulting refname to setup_revisions.  Commit 468224e5
      refactored this to simply mark the pending objects, saving an extra
      lookup.
      
      However, it confused the "flags" parameter to the each_ref_fn
      clalback, which is about the flags we found while looking up the ref
      with the object flag.  Because REF_ISSYMREF ("this ref is a symbolic
      ref, e.g. refs/remotes/origin/HEAD") happens to be the same bit
      pattern as SEEN ("we have picked this object up from the pending
      list and moved it to revs.commits list"), we incorrectly reported
      that a commit previously at the detached HEAD will become
      unreachable if the only ref that can reach the commit happens to be
      pointed at by a symbolic ref.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      add416a6
  6. 25 7月, 2012 1 次提交
    • J
      Enumerate revision range specifiers in the documentation · ca5ee2d1
      Junio C Hamano 提交于
      It was a bit hard to learn how <rev>^@, <rev>^! and various other
      forms of range specifiers are used, because they were discussed
      mostly in the prose part of the documentation, unlike various forms
      of extended SHA-1 expressions that are listed in an enumerated list.
      
      Also add a few more examples showing use of <rev>, <rev>..<rev> and
      <rev>^! forms, stolen from a patch by Max Horn.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ca5ee2d1
  7. 24 7月, 2012 4 次提交
    • J
      commit: document the temporary commit message file · 41f597d9
      Jeff King 提交于
      We do not document COMMIT_EDITMSG at all, but users may want
      to know about it for two reasons:
      
        1. They may want to tell their editor to configure itself
           for formatting a commit message.
      
        2. If a commit is aborted by an error, the user may want
           to recover the commit message they typed.
      
      Let's put a note in git-commit(1).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      41f597d9
    • J
      mergetool: support --tool-help option like difftool does · 109859e2
      Junio C Hamano 提交于
      This way we do not have to risk the list of tools going out of sync
      between the implementation and the documentation.
      
      In the same spirit as bf73fc21 (difftool: print list of valid tools
      with '--tool-help', 2012-03-29), trim the list of merge backends in
      the documentation.  We do not want to have a complete list of valid
      tools; we only want a list to help people guess what kind of things
      the tools do to be specified there, and refer them to --tool-help
      for a complete list.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      109859e2
    • J
      advice: pass varargs to strbuf_vaddf, not strbuf_addf · 447b99c8
      Jeff King 提交于
      The advise() function takes a variable number of arguments
      and converts them into a va_list object to pass to strbuf
      for handling. However, we accidentally called strbuf_addf
      (that takes a variable number of arguments) instead of
      strbuf_vaddf (that takes a va_list).
      
      This bug dates back to v1.7.8.1-1-g23cb5bf3, but we never
      noticed because none of the current callers passes a string
      with a format specifier in it. And the compiler did not
      notice because the format string is not available at
      compile time.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      447b99c8
    • J
      Makefile: BLK_SHA1 does not require fast htonl() and unaligned loads · f200197c
      Jonathan Nieder 提交于
      block-sha1/ is fast on most known platforms.  Clarify the Makefile to
      be less misleading about that.
      
      Early versions of block-sha1/ explicitly relied on fast htonl() and
      fast 32-bit loads with arbitrary alignment.  Now it uses those on some
      arches but the default behavior is byte-at-a-time access for the sake
      of arches like ARM, Alpha, and their kin and it is still pretty fast
      on these arches (fast enough to supersede the mozilla SHA1
      implementation and the hand-written ARM assembler implementation that
      were bundled before).
      Signed-off-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f200197c
  8. 23 7月, 2012 10 次提交