]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-gui.sh
git-gui: Improve the Windows and Mac OS X shortcut creators
[thirdparty/git.git] / git-gui.sh
index 3efecdd962bf7f0f2db63f53348eac0dfdf68f25..2077261e647904d9871479411263d0fdcbb79662 100755 (executable)
@@ -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