Last active
December 11, 2024 22:46
-
-
Save miner/e73fc98a83a8fe05d9ef000d46d68a9f to your computer and use it in GitHub Desktop.
Revisions
-
miner revised this gist
Apr 25, 2016 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,10 +9,10 @@ dir=$PWD until [ -e "$dir/.git" ]; do if [ "$dir" == "/" ]; then echo "Not a git repository" >&2 exit 1; fi dir=`dirname "$dir"` done # open fresh FileMerge and wait for termination, avoids issues with git temp files -
miner revised this gist
Apr 24, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ # find top level of git project dir=$PWD until [ -e "$dir/.git" ]; do if [ "$dir" == "/" ]; then break; else dir=`dirname "$dir"` -
miner revised this gist
Apr 24, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ until [ -e "$dir/.git" ]; do if [ $dir == "/" ]; then break; else dir=`dirname "$dir"` fi done -
miner revised this gist
Apr 24, 2016 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,14 +5,14 @@ # cd to your project dir and and run difftool like this: # git difftool -d -x gdiff # find top level of git project dir=$PWD until [ -e "$dir/.git" ]; do if [ $dir == "/" ]; then break; else dir=`dirname "$dir"` fi done # open fresh FileMerge and wait for termination, avoids issues with git temp files -
miner revised this gist
Apr 23, 2016 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ until [ $dir == "/" ]; do if [ -e "$dir/.git" ]; then break; else dir=`dirname "$dir"` fi done -
miner revised this gist
Apr 23, 2016 . 1 changed file with 1 addition and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,11 +2,8 @@ # my git difftool, calls FileMerge with project as -merge target # better than using opendiff # # cd to your project dir and and run difftool like this: # git difftool -d -x gdiff # cd to top level of git project dir=$PWD -
miner created this gist
Apr 23, 2016 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/bin/bash # my git difftool, calls FileMerge with project as -merge target # better than using opendiff # # configuration (once): # git config --global difftool.gdiff.cmd "gdiff \$LOCAL \$REMOTE" # # cd to your project dir and and run difftool like this: # git difftool -d -t gdiff # cd to top level of git project dir=$PWD until [ $dir == "/" ]; do if [ -e "$dir/.git" ]; then break; else dir=`dirname "$dir"` fi done # open fresh FileMerge and wait for termination, avoids issues with git temp files open -a FileMerge -n -W --args -left "$1" -right "$2" -merge "$dir" # references: # http://hints.macworld.com/article.php?story=20070220223441729 # https://gist.github.com/bkeating/329690