1. 15 6月, 2013 2 次提交
  2. 12 6月, 2013 2 次提交
  3. 29 5月, 2013 1 次提交
  4. 10 5月, 2013 6 次提交
    • J
      Git 1.8.2.3 · 92758dd2
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      92758dd2
    • J
      Merge branch 'tr/copy-revisions-from-stdin' into maint · 07e03d46
      Junio C Hamano 提交于
      * tr/copy-revisions-from-stdin:
        read_revisions_from_stdin: make copies for handle_revision_arg
      07e03d46
    • R
      t5004: avoid using tar for checking emptiness of archive · ea2d20d4
      René Scharfe 提交于
      Test 2 of t5004 checks if a supposedly empty tar archive really
      contains no files.  24676f02 (t5004: fix issue with empty archive test
      and bsdtar) removed our commit hash to make it work with bsdtar, but
      the test still fails on NetBSD and OpenBSD, which use their own tar
      that considers a tar file containing only NULs as broken.
      
      Here's what the different archivers do when asked to create a tar
      file without entries:
      
      	$ uname -v
      	NetBSD 6.0.1 (GENERIC)
      	$ gtar --version | head -1
      	tar (GNU tar) 1.26
      	$ bsdtar --version
      	bsdtar 2.8.4 - libarchive 2.8.4
      
      	$ : >zero.tar
      	$ perl -e 'print "\0" x 10240' >tenk.tar
      	$ sha1 zero.tar tenk.tar
      	SHA1 (zero.tar) = da39a3ee5e6b4b0d3255bfef95601890afd80709
      	SHA1 (tenk.tar) = 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
      
      	$ : | tar cf - -T - | sha1
      	da39a3ee5e6b4b0d3255bfef95601890afd80709
      	$ : | gtar cf - -T - | sha1
      	34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
      	$ : | bsdtar cf - -T - | sha1
      	34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
      
      So NetBSD's native tar creates an empty file, while GNU tar and bsdtar
      both give us 10KB of NULs -- just like git archive with an empty tree.
      Now let's see how the archivers handle these two kinds of empty tar
      files:
      
      	$ tar tf zero.tar; echo $?
      	tar: Unexpected EOF on archive file
      	1
      	$ gtar tf zero.tar; echo $?
      	gtar: This does not look like a tar archive
      	gtar: Exiting with failure status due to previous errors
      	2
      	$ bsdtar tf zero.tar; echo $?
      	0
      
      	$ tar tf tenk.tar; echo $?
      	tar: Cannot identify format. Searching...
      	tar: End of archive volume 1 reached
      	tar: Sorry, unable to determine archive format.
      	1
      	$ gtar tf tenk.tar; echo $?
      	0
      	$ bsdtar tf tenk.tar; echo $?
      	0
      
      NetBSD's tar complains about both, bsdtar happily accepts any of them
      and GNU tar doesn't like zero-length archive files.  So the safest
      course of action is to stay with our block-of-NULs format which is
      compatible with GNU tar and bsdtar, as we can't make NetBSD's native
      tar happy anyway.
      
      We can simplify our test, however, by taking tar out of the picture.
      Instead of extracting the archive and checking for the non-presence of
      files, check if the file has a size of 10KB and contains only NULs.
      This makes t5004 pass on NetBSD and OpenBSD.
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ea2d20d4
    • R
      t5004: ignore pax global header file · abdb9b2e
      René Scharfe 提交于
      Versions of tar that don't know pax headers -- like the ones in NetBSD 6
      and OpenBSD 5.2 -- extract them as regular files.  Explicitly ignore the
      file created for our global header when checking the list of extracted
      files, as this is normal and harmless fall-back behaviour.  This fixes
      test 3 of t5004 on these platforms.
      Signed-off-by: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      abdb9b2e
    • D
      mergetools/kdiff3: do not use --auto when diffing · e2161bc3
      David Aguilar 提交于
      The `kdiff3 --auto` help message is, "No GUI if all conflicts are auto-
      solvable."  This flag was carried over from the original mergetool
      commands.  diff_cmd() is for two-way comparisons only so remove the
      superfluous flag.
      Signed-off-by: NDavid Aguilar <davvid@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e2161bc3
    • F
      b120ef3e
  5. 04 5月, 2013 3 次提交
  6. 03 5月, 2013 1 次提交
  7. 30 4月, 2013 3 次提交
    • J
      Merge branch 'fc/zsh-completion' into maint · 8301b976
      Junio C Hamano 提交于
      * fc/zsh-completion:
        complete: zsh: use zsh completion for the main cmd
        complete: zsh: trivial simplification
      8301b976
    • F
      complete: zsh: use zsh completion for the main cmd · 4911589b
      Felipe Contreras 提交于
      So that we can have a nice zsh completion output:
      
      % git <tab>
      add       -- add file contents to the index
      bisect    -- find by binary search the change that introduced a bug
      branch    -- list, create, or delete branches
      checkout  -- checkout a branch or paths to the working tree
      clone     -- clone a repository into a new directory
      commit    -- record changes to the repository
      diff      -- show changes between commits, commit and working tree, etc
      fetch     -- download objects and refs from another repository
      grep      -- print lines matching a pattern
      init      -- create an empty Git repository or reinitialize an existing one
      log       -- show commit logs
      merge     -- join two or more development histories together
      mv        -- move or rename a file, a directory, or a symlink
      pull      -- fetch from and merge with another repository or a local branch
      push      -- update remote refs along with associated objects
      rebase    -- forward-port local commits to the updated upstream head
      reset     -- reset current HEAD to the specified state
      rm        -- remove files from the working tree and from the index
      show      -- show various types of objects
      status    -- show the working tree status
      tag       -- create, list, delete or verify a tag object signed with GPG
      
      And other niceties, like 'git --git-dir=<tab>' showing only directories.
      
      For the rest, the bash completion stuff is still used.
      
      Also, add my copyright, since this more than a thin wrapper.
      Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4911589b
    • F
      complete: zsh: trivial simplification · 1ca6d4bc
      Felipe Contreras 提交于
      There should be no functional changes.
      
      The only reason I wrapped this code around a sub-function is because zsh
      did the same in it's bashcompinit script in order to declare the special
      variable 'words' as hidden, but only in this context.
      
      There's no need for that any more since we access __git_main directly,
      so 'words' is not modified, so there's no need for the sub-function.
      
      In zsh mode the array indexes are different though.
      Signed-off-by: NFelipe Contreras <felipe.contreras@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      1ca6d4bc
  8. 29 4月, 2013 5 次提交
  9. 27 4月, 2013 14 次提交
  10. 25 4月, 2013 3 次提交
    • J
      Update draft release notes to 1.8.2.2 · 173f9a71
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      173f9a71
    • J
      Merge branch 'jk/diff-algo-finishing-touches' into maint · e4d15959
      Junio C Hamano 提交于
      "git diff --diff-algorithm=algo" was understood by the command line
      parser, but "git diff --diff-algorithm algo" was not.
      
      * jk/diff-algo-finishing-touches:
        diff: allow unstuck arguments with --diff-algorithm
        git-merge(1): document diff-algorithm option to merge-recursive
      e4d15959
    • J
      Merge branch 'sr/log-SG-no-textconv' into maint · 283c63fa
      Junio C Hamano 提交于
      "git log -S/-G" started paying attention to textconv filter, but
      there was no way to disable this.  Make it honor --no-textconv
      option.
      
      * sr/log-SG-no-textconv:
        diffcore-pickaxe: unify code for log -S/-G
        diffcore-pickaxe: fix leaks in "log -S<block>" and "log -G<pattern>"
        diffcore-pickaxe: port optimization from has_changes() to diff_grep()
        diffcore-pickaxe: respect --no-textconv
        diffcore-pickaxe: remove fill_one()
        diffcore-pickaxe: remove unnecessary call to get_textconv()
      283c63fa