1
0
mirror of https://github.com/git/git.git synced 2024-10-01 08:21:24 +02:00
git/lib
Shawn O. Pearce 20f1a10bfb git-gui: Work around bad interaction between Tcl and cmd.exe on ^{tree}
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: Shawn O. Pearce <spearce@spearce.org>
2007-07-12 02:38:14 -04:00
..
blame.tcl git-gui: Skip nicknames when selecting author initials 2007-07-08 21:06:43 -04:00
branch.tcl git-gui: Allow creating a branch when none exists 2007-05-30 19:34:40 -04:00
browser.tcl git-gui: Correct ls-tree buffering problem in browser 2007-07-09 21:12:35 -04:00
class.tcl git-gui: Save geometry before the window layout is damaged 2007-06-11 23:52:43 -04:00
commit.tcl git-gui: Work around bad interaction between Tcl and cmd.exe on ^{tree} 2007-07-12 02:38:14 -04:00
console.tcl git-gui: Don't linewrap within console windows 2007-07-09 21:13:26 -04:00
database.tcl git-gui: Convert browser, console to "class" format 2007-05-08 21:38:54 -04:00
diff.tcl git-gui: Allow as few as 0 lines of diff context 2007-05-31 23:32:54 -04:00
error.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
index.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
merge.tcl git-gui: Unlock the index when cancelling merge dialog 2007-07-04 02:29:32 -04:00
option.tcl git-gui: Display the "Loading annotation..." message in italic 2007-06-06 01:26:51 -04:00
remote.tcl git-gui: Refactor into multiple files to save my sanity 2007-05-07 23:35:48 -04:00
shortcut.tcl git-gui: Ensure windows shortcuts always have .bat extension 2007-07-06 04:02:18 -04:00
transport.tcl git-gui: Move console procs into their own namespace 2007-05-07 23:35:50 -04:00