1. 24 5月, 2008 1 次提交
    • G
      Make git add -n and git -u -n output consistent · 205ffa94
      Gustaf Hendeby 提交于
      Output format from "git add -n $path" lists path to blobs that are going
      to be added on a single line, separated with SP.  On the other hand, the
      suggested "git add -u -n" shows one path per line, like "add '<file>'\n".
      Of course, these two are inconsistent.
      
      Plain "git add -n" can afford to only say names of paths, as all it does
      is to add (update).  However, "git add -u" needs to be able to express
      "remove" somehow.  So if we need to have them formatted the same way, we
      need to unify with the "git add -n -u" format.  Incidentally, this is
      consistent with how 'update-index' says it.
      
      This changes the output from "git add -n $paths" but as a general
      principle, output from Porcelain commands is a fair game for improvements
      and not for script consumption.
      Signed-off-by: NGustaf Hendeby <hendeby@isy.liu.se>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      205ffa94
  2. 22 5月, 2008 1 次提交
  3. 17 5月, 2008 8 次提交
  4. 15 5月, 2008 11 次提交
    • J
      Merge git://repo.or.cz/git-gui · 1fbb58b4
      Junio C Hamano 提交于
      * git://repo.or.cz/git-gui:
        git-gui: Delete branches with 'git branch -D' to clear config
        git-gui: Setup branch.remote,merge for shorthand git-pull
        git-gui: Update German translation
        git-gui: Don't use '$$cr master' with aspell earlier than 0.60
        git-gui: Report less precise object estimates for database compression
      1fbb58b4
    • C
      Documentation/git-prune.txt: document unpacked logic · 58949bb1
      Chris Frey 提交于
      Clarifies the git-prune man page, documenting that it only
      prunes unpacked objects.
      Signed-off-by: NChris Frey <cdfrey@foursquare.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      58949bb1
    • J
      Merge git://git.kernel.org/pub/scm/gitk/gitk · c7ea4536
      Junio C Hamano 提交于
      * git://git.kernel.org/pub/scm/gitk/gitk: (44 commits)
        gitk: Add a progress bar for checking out a head
        gitk: Show current row number and total number of rows
        gitk: Allow users to view diffs in external diff viewer
        gitk: Synchronize highlighting in file view for 'f' and 'b' commands
        gitk: Make updates go faster
        gitk: Disable "Reset %s branch to here" when on a detached head
        gitk: German translation again updated
        gitk: Update German translation
        gitk: Makefile/install: force permissions when installing files and dirs
        gitk: Initial Swedish translation.
        gitk: Spanish translation of gitk
        gitk: Fix handling of tree file list with special chars in names
        gitk: Reorganize processing of arguments for git log
        gitk: Fix problem with target row not being in scroll region
        gitk: Avoid a crash in selectline if commitinfo($id) isn't set
        gitk: Fix some corner cases in computing vrowmod and displayorder
        gitk: Correct a few strings and comments to say "git log"
        gitk: Don't filter view arguments through git rev-parse
        gitk: Fix problems with target row stuff
        gitk: Handle updating with path limiting better
        ...
      c7ea4536
    • J
      Merge branch 'maint' · 4b172de8
      Junio C Hamano 提交于
      * maint:
        Documentation/git-describe.txt: make description more readable
      4b172de8
    • J
      Merge branch 'maint-1.5.4' into maint · a473445a
      Junio C Hamano 提交于
      * maint-1.5.4:
        Documentation/git-describe.txt: make description more readable
      a473445a
    • J
      Merge branch 'sb/committer' · b66ae795
      Junio C Hamano 提交于
      * sb/committer:
        commit: Show committer if automatic
        commit: Show author if different from committer
        Preparation to call determine_author_info from prepare_to_commit
      b66ae795
    • J
      Merge branch 'bd/tests' · 761adeb4
      Junio C Hamano 提交于
      * bd/tests:
        Rename the test trash directory to contain spaces.
        Fix tests breaking when checkout path contains shell metacharacters
        Don't use the 'export NAME=value' in the test scripts.
        lib-git-svn.sh: Fix quoting issues with paths containing shell metacharacters
        test-lib.sh: Fix some missing path quoting
        Use test_set_editor in t9001-send-email.sh
        test-lib.sh: Add a test_set_editor function to safely set $VISUAL
        git-send-email.perl: Handle shell metacharacters in $EDITOR properly
        config.c: Escape backslashes in section names properly
        git-rebase.sh: Fix --merge --abort failures when path contains whitespace
      
      Conflicts:
      
      	t/t9115-git-svn-dcommit-funky-renames.sh
      761adeb4
    • J
      Merge branch 'mv/format-cc' · 486d1a56
      Junio C Hamano 提交于
      * mv/format-cc:
        Add tests for sendemail.cc configuration variable
        git-send-email: add a new sendemail.cc configuration variable
        git-format-patch: add a new format.cc configuration variable
      486d1a56
    • J
      Merge branch 'cc/hooks-doc' · 29182f7d
      Junio C Hamano 提交于
      * cc/hooks-doc:
        Documentation: rename "hooks.txt" to "githooks.txt" and make it a man page
      29182f7d
    • J
      Merge branch 'jk/renamelimit' (early part) · adf59ec1
      Junio C Hamano 提交于
      * 'jk/renamelimit' (early part):
        diff: make "too many files" rename warning optional
        bump rename limit defaults
        add merge.renamelimit config option
      adf59ec1
    • I
      Documentation/git-describe.txt: make description more readable · b7893cde
      Ian Hilt 提交于
      Signed-off-by: NIan Hilt <ian.hilt@gmail.com>
      Credit-to: Kevin Ballard <kevin@sb.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b7893cde
  5. 14 5月, 2008 4 次提交
    • J
      filter-branch: fix variable export logic · 0bdf93cb
      Jeff King 提交于
      filter-branch tries to restore "old" copies of some
      environment variables by using the construct:
      
        unset var
        test -z "$old_var" || var="$old_var" && export var
      
      This is just wrong.  AND-list and OR-list operators && and || have equal
      precedence and they bind left to right.  The second term, var="$old"
      assignment always succeeds, so we always end up exporting var.
      
      On bash and dash, exporting an unset variable has no effect. However, on
      some shells (such as FreeBSD's /bin/sh), the shell exports the empty
      value.
      
      This manifested itself in this case as git-filter-branch setting
      GIT_INDEX_FILE to the empty string, which in turn caused its call to
      git-read-tree to fail, leaving the working tree pointing at the original
      HEAD instead of the rewritten one.
      
      To fix this, we change the short-circuit logic to better match the intent:
      
        test -z "$old_var" || {
          var="$old_var" && export var
        }
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0bdf93cb
    • J
      clone: bsd shell portability fix · 6d9878cc
      Jeff King 提交于
      When using /bin/sh from FreeBSD 6.1, the value of $? is lost
      when calling a function inside the 'trap' action. This
      resulted in clone erroneously indicating success when it
      should have reported failure.
      
      As a workaround, we save the value of $? before calling any
      functions.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6d9878cc
    • J
      t5000: tar portability fix · 30684dfa
      Jeff King 提交于
      The output of 'tar tv' varies from system to system. In
      particular, the t5000 was expecting to parse the date from
      something like:
      
        -rw-rw-r-- root/root         0 2008-05-13 04:27 file
      
      but FreeBSD's tar produces this:
      
        -rw-rw-r--  0 root   root        0 May 13 04:27 file
      
      Instead of relying on tar's output, let's just extract the
      file using tar and stat the result using perl.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      30684dfa
    • J
      fix bsd shell negation · bbf08124
      Jeff King 提交于
      On some shells (notably /bin/sh on FreeBSD 6.1), the
      construct
      
        foo && ! bar | baz
      
      is true if
      
        foo && baz
      
      whereas for most other shells (such as bash) is true if
      
        foo && ! baz
      
      We can work around this by specifying
      
        foo && ! (bar | baz)
      
      which works everywhere.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bbf08124
  6. 13 5月, 2008 2 次提交
  7. 12 5月, 2008 13 次提交