Код: Выделить всё
$ git log --oneline --name-status --graph
* 0ad6eb6 Change g.
| M g
* 51a479e Changes from other files to f.
| M f
| M g
| A k
| M l
* aac7be6 Add line to g, h, l.
| M g
| M h
| M l
* e70bb4b Initail commit. Add f, g, h, l.
A f
A g
A h
A l
Код: Выделить всё
commit 0ad6eb69e111278caf1debcbf5e04ce5fbb4c7c5
Author: sgf <sgf.dma@gmail.com>
Date: Fri Nov 23 21:53:06 2012 +0400
Change g.
diff --git a/g b/g
index 538e316..5fd00e5 100644
--- a/g
+++ b/g
@@ -1 +1,2 @@
blue blue blue blue blue blue blue blue blue blue blue blue blue blue blue
+pink pink pink pink pink pink pink pink pink pink pink pink pink pink pink
commit 51a479eb3aecc6bb8e3dfde441a8ed149632f9ff
Author: sgf <sgf.dma@gmail.com>
Date: Fri Nov 23 21:52:25 2012 +0400
Changes from other files to f.
diff --git a/f b/f
index 3beb53d..bc7d86b 100644
--- a/f
+++ b/f
@@ -1 +1,5 @@
green green green green green green green green green green green green green
+yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow
+cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan
+black black black black black black black black black black black black black
+purple purple purple purple purple purple purple purple purple purple purple
diff --git a/g b/g
index 6228ae4..538e316 100644
--- a/g
+++ b/g
@@ -1,2 +1 @@
blue blue blue blue blue blue blue blue blue blue blue blue blue blue blue
-yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow
diff --git a/k b/k
new file mode 100644
index 0000000..c851261
--- /dev/null
+++ b/k
@@ -0,0 +1,2 @@
+red red red red red red red red red red red red red red red red red red red
+purple purple purple purple purple purple purple purple purple purple purple
diff --git a/l b/l
index 85edc30..eb6cf5a 100644
--- a/l
+++ b/l
@@ -1,2 +1,3 @@
black black black black black black black black black black black black black
grey grey grey grey grey grey grey grey grey grey grey grey grey grey grey
+silver silver silver silver silver silver silver silver silver silver silver
commit aac7be6c49312c06fd1e7798fd3137507776fd20
Author: sgf <sgf.dma@gmail.com>
Date: Fri Nov 23 21:36:17 2012 +0400
Add line to g, h, l.
diff --git a/g b/g
index 538e316..6228ae4 100644
--- a/g
+++ b/g
@@ -1 +1,2 @@
blue blue blue blue blue blue blue blue blue blue blue blue blue blue blue
+yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow
diff --git a/h b/h
index 4d478d6..fe5f36f 100644
--- a/h
+++ b/h
@@ -1 +1,2 @@
cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan
+magenta magenta magenta magenta magenta magenta magenta magenta magenta
diff --git a/l b/l
index ad61d2d..85edc30 100644
--- a/l
+++ b/l
@@ -1 +1,2 @@
black black black black black black black black black black black black black
+grey grey grey grey grey grey grey grey grey grey grey grey grey grey grey
commit e70bb4b5507cc3618cbb5bd1c2e48a9fd8212f1e
Author: sgf <sgf.dma@gmail.com>
Date: Fri Nov 23 21:32:27 2012 +0400
Initail commit. Add f, g, h, l.
diff --git a/f b/f
new file mode 100644
index 0000000..3beb53d
--- /dev/null
+++ b/f
@@ -0,0 +1 @@
+green green green green green green green green green green green green green
diff --git a/g b/g
new file mode 100644
index 0000000..538e316
--- /dev/null
+++ b/g
@@ -0,0 +1 @@
+blue blue blue blue blue blue blue blue blue blue blue blue blue blue blue
diff --git a/h b/h
new file mode 100644
index 0000000..4d478d6
--- /dev/null
+++ b/h
@@ -0,0 +1 @@
+cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan
diff --git a/l b/l
new file mode 100644
index 0000000..ad61d2d
--- /dev/null
+++ b/l
@@ -0,0 +1 @@
+black black black black black black black black black black black black black
Те, как вы можете видеть, в комите 51a479e в файл f было скопировано по одной строчке из файлов h, k, l и перемещена одна строчка из файла g. Те, насколько я понимаю, git blame должен определить, что хотя бы какие-то строки были взяты из других файлов, но он не находит вообще ничего:
Код: Выделить всё
$ git blame -p -C -C -C10 '51a479e^!' -- f
aac7be6c49312c06fd1e7798fd3137507776fd20 1 1 1
author sgf
author-mail <sgf.dma@gmail.com>
author-time 1353692177
author-tz +0400
committer sgf
committer-mail <sgf.dma@gmail.com>
committer-time 1353692177
committer-tz +0400
summary Add line to g, h, l.
boundary
filename f
green green green green green green green green green green green green green
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 2 2 4
author sgf
author-mail <sgf.dma@gmail.com>
author-time 1353693145
author-tz +0400
committer sgf
committer-mail <sgf.dma@gmail.com>
committer-time 1353693145
committer-tz +0400
summary Changes from other files to f.
previous aac7be6c49312c06fd1e7798fd3137507776fd20 f
filename f
yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 3 3
cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 4 4
black black black black black black black black black black black black black
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 5 5
purple purple purple purple purple purple purple purple purple purple purple
и
Код: Выделить всё
$ git blame -p -C -C -C10 51a479e -- f
e70bb4b5507cc3618cbb5bd1c2e48a9fd8212f1e 1 1 1
author sgf
author-mail <sgf.dma@gmail.com>
author-time 1353691947
author-tz +0400
committer sgf
committer-mail <sgf.dma@gmail.com>
committer-time 1353691947
committer-tz +0400
summary Initail commit. Add f, g, h, l.
boundary
filename f
green green green green green green green green green green green green green
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 2 2 4
author sgf
author-mail <sgf.dma@gmail.com>
author-time 1353693145
author-tz +0400
committer sgf
committer-mail <sgf.dma@gmail.com>
committer-time 1353693145
committer-tz +0400
summary Changes from other files to f.
previous aac7be6c49312c06fd1e7798fd3137507776fd20 f
filename f
yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow yellow
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 3 3
cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan cyan
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 4 4
black black black black black black black black black black black black black
51a479eb3aecc6bb8e3dfde441a8ed149632f9ff 5 5
purple purple purple purple purple purple purple purple purple purple purple
Почему?