denio7 / egit

Automatically exported from code.google.com/p/egit
0 stars 0 forks source link

history does not "follow" past a move/rename #107

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

after performing the operations below -- make file, commit, edit file,
commit, move file, commit -- egit history view does not show any history
past the move operation, even though it was successfully marked by git as a
"rename"

{{{
[chad@ws-050/chad]# mkdir egittest
[chad@ws-050/chad]# cd egittest/
[chad@ws-050/chad/egittest]# git init
Initialized empty Git repository in/chad/egittest/.git/
[chad@ws-050/chad/egittest]# touch myfile.txt
[chad@ws-050/chad/egittest]# git add myfile.txt
[chad@ws-050/chad/egittest]# git commit -m "first commit" myfile.txt
[master (root-commit) ed9b222] first commit
 0 files changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 myfile.txt
[chad@ws-050/chad/egittest]# here's an edit >> myfile.txt
Unmatched '.
[chad@ws-050/chad/egittest]# echo "here's an edit" >> myfile.txt
[chad@ws-050/chad/egittest]# git commit -m "second commit" myfile.txt
[master 728a0b3] second commit
 1 files changed, 1 insertions(+), 0 deletions(-)
[chad@ws-050/chad/egittest]# mkdir subdir
[chad@ws-050/chad/egittest]# git mv myfile.txt subdir/
[chad@ws-050/chad/egittest]# git commit -a -m "moved myfile.txt"
[master c450c1e] moved myfile.txt
 1 files changed, 0 insertions(+), 0 deletions(-)
 rename myfile.txt => subdir/myfile.txt (100%)
}}}

the history view shows me only "moved myfile.txt"

What is the expected output? What do you see instead?

i expect to see the entire history of the file prior to the move/rename in
eclipse, as in what `git log --follow` displays:

{{{
[chad@ws-050/chad/egittest]# git log --follow subdir/myfile.txt
commit c450c1e9fccc18efb93c7006f16601e10f6bca94
Author: Chad Dombrova <chad@luma-pictures.com>
Date:   Mon Jul 27 09:48:03 2009 -0700

    moved myfile.txt

commit 728a0b39724881022737fc463dde3aca5524a15a
Author: Chad Dombrova <chad@luma-pictures.com>
Date:   Mon Jul 27 09:42:57 2009 -0700

    second commit

commit ed9b222e5aa29c6e12c1527ccfde8df3d146e55b
Author: Chad Dombrova <chad@luma-pictures.com>
Date:   Mon Jul 27 09:42:13 2009 -0700

    first commit
}}}

What version of the product are you using? On what operating system?

0.5.0 on osx and linux using eclipse 3.4

Original issue reported on code.google.com by chad...@gmail.com on 27 Jul 2009 at 5:13

GoogleCodeExporter commented 8 years ago
Rename detection isn't in there yet and this feature would need that.

Original comment by robin.ro...@gmail.com on 30 Jul 2009 at 2:14

GoogleCodeExporter commented 8 years ago
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=302549

Original comment by robin.ro...@gmail.com on 12 Jul 2010 at 5:35