summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-07-09 07:28:41 (GMT)
committerShawn O. Pearce <spearce@spearce.org>2007-07-09 07:38:10 (GMT)
commit7eafa2f1578e605e1e68d8ccba9d600cc6b89173 (patch)
tree458a62dab13588c872007c88929fddf9b57d0832 /git-gui.sh
parent74c4763c76a111809747652210962ad09896b74f (diff)
downloadgit-7eafa2f1578e605e1e68d8ccba9d600cc6b89173.zip
git-7eafa2f1578e605e1e68d8ccba9d600cc6b89173.tar.gz
git-7eafa2f1578e605e1e68d8ccba9d600cc6b89173.tar.bz2
git-gui: Improve the Windows and Mac OS X shortcut creators
We now embed any GIT_* and SSH_* environment variables as well as the path to the git wrapper executable into the Mac OS X .app file. This should allow us to restore the environment properly when we restart. We also try to use proper Bourne shell single quoting when we can, as this avoids any sort of problems that might occur due to a path containing shell metacharacters. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 3efecdd..2077261 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -475,6 +475,11 @@ proc git_write {args} {
return [open [concat $opt $cmdp $args] w]
}
+proc sq {value} {
+ regsub -all ' $value "'\\''" value
+ return "'$value'"
+}
+
proc load_current_branch {} {
global current_branch is_detached