Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-git-export @ 4679:826659bd8053
git patches: correct handling of filenames with spaces
Add a trailing TAB to the "--- filename" lines if there's a space
in the file name. This allows patch(1) to work correctly. The
same is done for diff --nodates.
This was originally suggested by Andrei Vermel, but at the time
I thought git was doing something different.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 22 Jun 2007 19:06:04 -0300 |
parents | 49237d6ae97d |
children | 0fc16031bb45 |
comparison
equal
deleted
inserted
replaced
4678:a814a5b11fff | 4679:826659bd8053 |
---|---|
138 hg cp brand-new2 brand-new3 | 138 hg cp brand-new2 brand-new3 |
139 hg mv brand-new2 brand-new3-2 | 139 hg mv brand-new2 brand-new3-2 |
140 hg ci -m 'multiple renames/copies' | 140 hg ci -m 'multiple renames/copies' |
141 hg diff --git -r -2 -r -1 | 141 hg diff --git -r -2 -r -1 |
142 | 142 |
143 echo '% there should be a trailing TAB if there are spaces in the file name' | |
144 echo foo > 'with spaces' | |
145 hg add 'with spaces' | |
146 hg diff --git | |
147 hg ci -m 'add filename with spaces' | |
148 |