Re: [PATCH 2/2] git-sh-setup: work around Cygwin path handling gotchas
- From
Steven Penny <svnpenn@gmail.com>
- Date
- May 19, 2012, 00:43 UTC
- Message-ID
- <CAAXzdLU2t64x0jk_QHjwBDP2OPEeVqipT6uaivikn=6F6aieAA@mail.gmail.com>
- In-Reply-To
- <7vehqib4kk.fsf@alter.siamese.dyndns.org>
On Thu, May 17, 2012 at 9:34 PM, Junio C Hamano wrote:
> And from Cygwin Git, your programs (like $EDITOR and hooks) will get POSIX > paths. It is your programs' responsibility to turn them into Windows > paths if/as necessary.
I think this is correct. These program should be accepting Cygwin paths and are not for obvious reason, they exist outside the the Cygwin world.
For now I will do something like this
editor(){
cygpath -m "$1" | xargs notepad
}export -f editor git config core.editor editor