sphinxext-rediraffe icon indicating copy to clipboard operation
sphinxext-rediraffe copied to clipboard

fix git diff list for files with spaces

Open minrk opened this issue 2 years ago • 1 comments

git uses \t as delimiter. Without this, split fails with "Too many values to unpack", as \s+ catches spaces in filenames.

I don't know if there are situations where git would use a different character.

Example git output line:

'R099\tfile name.md\tnew file name.md'

minrk avatar May 04 '23 10:05 minrk

There should be a -0 or -Z flag that makes git use a \0 as a delimiter.

Starlight220 avatar May 04 '23 15:05 Starlight220