1. 14 7月, 2007 3 次提交
  2. 13 7月, 2007 27 次提交
  3. 12 7月, 2007 10 次提交
    • P
      gitk: Improve handling of -- and ambiguous arguments · cdaee5db
      Paul Mackerras 提交于
      This makes gitk more consistent with git rev-list and git log in its
      handling of arguments that could be either a revision or a filename;
      now gitk displays an error message and quits, rather than treating it
      as a revision and getting an error in the underlying git log.  Now
      gitk always passes "--" to git log even if no filenames are being
      specified.
      
      It also makes gitk display errors in invoking git log in a window
      rather than on stderr, and makes gitk stop looking for a -d flag
      when it sees a "--" argument.
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      cdaee5db
    • J
      Teach read-tree 2-way merge to ignore intermediate symlinks · ec0603e1
      Junio C Hamano 提交于
      Earlier in 16a4c617, we taught "read-tree -m -u" not to be
      confused when switching from a branch that has a path frotz/filfre
      to another branch that has a symlink frotz that points at xyzzy/
      directory.  The fix was incomplete in that it was still confused
      when coming back (i.e. switching from a branch with frotz -> xyzzy/
      to another branch with frotz/filfre).
      
      This fix is rather expensive in that for a path that is created
      we would need to see if any of the leading component of that
      path exists as a symbolic link in the filesystem (in which case,
      we know that path itself does not exist, and the fact we already
      decided to check it out tells us that in the index we already
      know that symbolic link is going away as there is no D/F
      conflict).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ec0603e1
    • J
      Merge branch 'maint' of git://repo.or.cz/git-gui into maint · 1b2782a5
      Junio C Hamano 提交于
      * 'maint' of git://repo.or.cz/git-gui:
        git-gui: Work around bad interaction between Tcl and cmd.exe on ^{tree}
        git-gui: Don't linewrap within console windows
        git-gui: Correct ls-tree buffering problem in browser
        git-gui: Skip nicknames when selecting author initials
        git-gui: Ensure windows shortcuts always have .bat extension
        git-gui: Include a Push action on the left toolbar
        git-gui: Bind M1-P to push action
        git-gui: Don't bind F5/M1-R in all windows
        git-gui: Unlock the index when cancelling merge dialog
        git-gui: properly popup error if gitk should be started but is not installed
      1b2782a5
    • S
      git-gui: Change prior tree SHA-1 verification to use git_read · b215883d
      Shawn O. Pearce 提交于
      This cat-file was done on maint, where we did not have git_read
      available to us.  But here on master we do, so we should make
      use of it.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      b215883d
    • S
      Merge branch 'maint' · f31b6ff7
      Shawn O. Pearce 提交于
      * maint:
        git-gui: Work around bad interaction between Tcl and cmd.exe on ^{tree}
      f31b6ff7
    • S
      git-gui: Work around bad interaction between Tcl and cmd.exe on ^{tree} · 20f1a10b
      Shawn O. Pearce 提交于
      From Johannes Sixt <J.Sixt@eudaptics.com>:
      > It seems that MSYS's wish does some quoting for Bourne shells,
      > in particular, escape the first '{' of the "^{tree}" suffix, but
      > then it uses cmd.exe to run "git rev-parse". However, cmd.exe does
      > not remove the backslash, so that the resulting rev expression
      > ends up in git's guts as unrecognizable garbage: rev-parse fails,
      > and git-gui hickups in a way that it must be restarted.
      
      Johannes originally submitted a patch to this section of commit.tcl
      to use `git rev-parse $PARENT:`, but not all versions of Git will
      accept that format.  So I'm just taking the really simple approach
      here of scanning the first line of the commit to grab its tree.
      About the same cost, but works everywhere.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      20f1a10b
    • J
      Re-code builtin-branch.c in UTF-8 · d972cce0
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d972cce0
    • C
      Function stripspace now gets a buffer instead file descriptors. · 975e0daf
      Carlos Rica 提交于
      An implementation easier to call from builtins. It is designed
      to be used from the upcoming builtin-tag.c and builtin-commit.c,
      because both need to remove unwanted spaces from messages.
      Signed-off-by: NCarlos Rica <jasampler@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      975e0daf
    • B
      Pack information tool · 73f89360
      Brian Downing 提交于
      This tool will print vaguely pretty information about a pack.  It
      expects the output of "git-verify-pack -v" as input on stdin.
      
      $ git-verify-pack -v | packinfo.pl
      
      See the documentation in the script (contrib/stats/packinfo.pl)
      for more information.
      Signed-off-by: NBrian Downing <bdowning@lavos.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      73f89360
    • J
      branch --track: code cleanup and saner handling of local branches · 6f084a56
      Johannes Schindelin 提交于
      This patch cleans up some complicated code, and replaces it with a
      cleaner version, using code from remote.[ch], which got extended a
      little in the process.  This also enables us to fix two cases:
      
      The earlier "fix" to setup tracking only when the original ref started
      with "refs/remotes" is wrong.  You are absolutely allowed to use a
      separate layout for your tracking branches.  The correct fix, of course,
      is to set up tracking information only when there is a matching
      remote.<nick>.fetch line containing a colon.
      
      Another corner case was not handled properly.  If two remotes write to
      the original ref, just warn the user and do not set up tracking.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      6f084a56