Reputation: 1
If I run
git rebase -i HEAD~10
The editor comes up with just
git://github.com/jquery/jquery.git
Instead of the commits. What am I doing wrong here?
Upvotes: 1
Views: 735
Reputation: 1
#!/bin/dash -e
if [ "$1" ]
then k=$(cygpath -w "$1")
elif [ "$#" != 0 ]
then k=
fi
Notepad2 ${k+"$k"}
If no path, pass no path
If path is empty, pass empty path
If path is not empty, convert to Windows format.
Then I set these variables:
export EDITOR=notepad2.sh
export GIT_EDITOR='dash /usr/local/bin/notepad2.sh'
EDITOR allows script to work with Git
GIT_EDITOR allows script to work with Hub commands
Upvotes: 1