Thread (8 messages) 8 messages, 3 authors, 2016-06-15

Re: git log and utf-u in filenames

flat view

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:45:24

On Fri, 26 Sep 2008, Alex Riesen wrote:
Jakub Narebski, Fri, Sep 26, 2008 01:15:58 +0200:
quoted
Well, in gitweb we could use '-z' option for git-diff-tree and git-ls-tree,
but it has its disadvantages, like having to do actual parsing record after
record instead of simplys splitting outout on end of line ("\n") characters.
How about simply splitting output on end of line ("\0" NUL) characters?
The "\n" NL you refer to is just as EOR as NUL.
Doesn't work for "git diff-tree -z [...]" output. When there is rename
or copy detected, NUL is used as separator between fields (beetween
source and destination unquoted filename), not only between records:

  git diff-tree
      .... <src qfilename> TAB <dst qfilename> LF

  git diff-tree -z
      .... <src filename>  NUL <dst filename>  NUL

-- 
Jakub Narebski
Poland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help