git commit logs CREATE and COPY multiple times with curly brackets - Why? -


recently analysed commit log of local repo , noticed following , know happening here. can give answer or pointer web site explaining this?

let's have following file structure:

/path/a.txt   /path/b.txt   /path/c.txt   /path/d.txt   

when commit it, saw following in log:

create mode 100644 path/a.txt create mode 100644 path/b.txt copy path/{a.txt => b.txt} (100%) create mode 100644 path/c.txt copy path/{a.txt => c.txt} (100%) create mode 100644 path/d.txt copy path/{a.txt => d.txt} (100%) 

all files different content-wise. curly brackets {=>} mean?

git version: 1.7.0.4 (don't ask me why not using latest version, it's client's server can not install latest version.)

the curly brackets short-hand git doesn't have print full path twice.

thus, copy path/{a.txt => b.txt} short copy path/a.txt => path/b.txt.

the percentage @ end of lines tells how similar respective second file first 1 (in case, identical, why git thinks copied them).

note has no influence on commit content, it's semantic interpretation that's done purely output. commit's content exact snapshot of tracked files, without saving meta information moving or copying.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -