Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upPartial filename display when space in it #360
Comments
|
Is this true of all files or just files that start with |
|
Seem the same for 'c d'
And the same for another test
|
|
I'm not able to recreate what you're seeing:
This results in:
|
|
Because you are not in the same state as me. $ git diff -- /dev/null c\ d
diff --git a/c d b/c d
new file mode 100644
index 0000000..e69de29
$ git diff -- /dev/null c\ d | diff-so-fancy
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
added: c
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────and it works as it does when there is no space in the filename $ git diff -- /dev/null test-file
diff --git a/test-file b/test-file
new file mode 100644
index 0000000..e69de29
$ git diff -- /dev/null test-file | diff-so-fancy
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
added: test-file
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── |
|
Still not tracking... when I create a new untracked file named
Can you give me a full set of instructions to recreate the issue? |
|
Don't add content to the file is the part who let appear this behavior $ touch $'un test'
$ git diff -- /dev/null un\ test | diff-so-fancy
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
added: un
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
$ echo "test" > $'un test'
$ git diff -- /dev/null un\ test | diff-so-fancy
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
added: un test
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
@ un test:1 @
test
$ |
|
OK I can recreate it now. Can you try the fix in 24f8924 please? |
|
LGTM The filename is no truncated anymore when the file is empty and the filename contain a space with 24f8924 |
|
Can you test again, I just landed a fix. |
|
Excellent. Thank you! |




Original
So-Fancy:
The filename is "a b" and not "a"
Regards,