Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Renaming a file - no history?
Renaming a file - no history? [message #652547] Fri, 04 February 2011 13:47 Go to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
I thought git tracked a file in history if you renamed it or moved it.
That's one of the selling points of using git over cvs right?

So I renamed a file, did a commit but history won't show any versions
previous to the new named file.

Did I do something wrong?

(A git newbie)
Re: Renaming a file - no history? [message #652650 is a reply to message #652547] Fri, 04 February 2011 20:28 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
No.
If you do a "git log" with a command line git, then all commits until the rename are shown (backwards from current in the history). If you do "git log --follow", then all commits since the initial commit are shown.
The history view in EGit only shows the equivalent of "git log", the functionality of following a rename is not implemented in EGit at the moment, but it is on our todo list for one of the next releases.
Re: Renaming a file - no history? [message #652655 is a reply to message #652650] Fri, 04 February 2011 20:45 Go to previous messageGo to next message
h1055071 is currently offline h1055071Friend
Messages: 335
Registered: July 2009
Senior Member
On 04/02/2011 20:28, Manuel Doninger wrote:
> No.
> If you do a "git log" with a command line git, then all commits until
> the rename are shown (backwards from current in the history). If you do
> "git log --follow", then all commits since the initial commit are shown.
> The history view in EGit only shows the equivalent of "git log", the
> functionality of following a rename is not implemented in EGit at the
> moment, but it is on our todo list for one of the next releases.

Thank-you.

I'm getting g/it...slowly...
Re: Renaming a file - no history? [message #730913 is a reply to message #652650] Thu, 29 September 2011 14:19 Go to previous messageGo to next message
prusswan is currently offline prusswanFriend
Messages: 3
Registered: September 2011
Junior Member
Manuel Doninger wrote on Fri, 04 February 2011 15:28

The history view in EGit only shows the equivalent of "git log", the functionality of following a rename is not implemented in EGit at the moment, but it is on our todo list for one of the next releases.


I suppose that's Bug 302549?

I would like to know if there's anything I can do to expedite it's resolution, since it will make a reorganization (and moving) of build files much more palatable.
Re: Renaming a file - no history? [message #731003 is a reply to message #730913] Thu, 29 September 2011 16:45 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
prusswan skrev 2011-09-29 16.19:
> Manuel Doninger wrote on Fri, 04 February 2011 15:28
>> The history view in EGit only shows the equivalent of "git log", the
>> functionality of following a rename is not implemented in EGit at the
>> moment, but it is on our todo list for one of the next releases.
>
>
> I suppose that's Bug 302549?
>
> I would like to know if there's anything I can do to expedite it's
> resolution, since it will make a reorganization (and moving) of build
> files much more palatable.

Test and fix issues in http://egit.eclipse.org/r/#change,3743 unless the
author wants to / have the time.

-- robin
Re: Renaming a file - no history? [message #753708 is a reply to message #652547] Fri, 28 October 2011 12:56 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
http://egit.eclipse.org/r/#change,3743 is merged now, so the EGit history view is now following a rename.
Re: Renaming a file - no history? [message #753850 is a reply to message #753708] Sat, 29 October 2011 13:47 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
Doesn't seem to be working in the latest nightly build:

Eclipse EGit 1.2.0.201110282220
Eclipse JGit 1.2.0.201110282217


Maybe the next one?
Re: Renaming a file - no history? [message #753851 is a reply to message #753850] Sat, 29 October 2011 14:03 Go to previous messageGo to next message
Manuel Doninger is currently offline Manuel DoningerFriend
Messages: 119
Registered: October 2010
Senior Member
It worked with the build from 27th (but the build artifacts are already deleted). The current builds are all failing (failing tests), so you have to wait a couple days, until the errors are fixed.
Re: Renaming a file - no history? [message #753853 is a reply to message #753851] Sat, 29 October 2011 14:10 Go to previous messageGo to next message
R Shapiro is currently offline R ShapiroFriend
Messages: 386
Registered: June 2011
Senior Member
Actually it is working with the current nightly, I didn't notice there was a new preference that had to be enabled. Looks fine once I check that box.

[Updated on: Sat, 29 October 2011 14:11]

Report message to a moderator

Re: Renaming a file - no history? [message #756027 is a reply to message #652547] Thu, 10 November 2011 14:02 Go to previous message
Iddo  is currently offline Iddo Friend
Messages: 2
Registered: November 2011
Junior Member
In the nightlies, I can now see the history with support for following a rename/move, however when I right click on the history and choose "Compare with working directory" the right column shows me the file from the working directory, and the left column is blank with an error

"<file> not in commit 381c...... --sp"

I've also added this information to bug 302549, which seems relevant. Can you help me locate the problem please.

Thanks,

Iddo.
Previous Topic:Ubuntu 10.04 with Eclipse STS - Import fails
Next Topic:Release schedule?
Goto Forum:
  


Current Time: Tue Apr 23 07:15:33 GMT 2024

Powered by FUDForum. Page generated in 0.04619 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top