Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » [EGit] (How) can I get a git history of a folder?
[EGit] (How) can I get a git history of a folder? [message #537286] Tue, 01 June 2010 19:33 Go to next message
Kay Huber is currently offline Kay HuberFriend
Messages: 36
Registered: July 2009
Member
Hi all

Using latest nightly EGit 0.8.0.201005311531 and JGit 0.8.0.201005300828

Is it possible (yet) to see the git history of a folder? It currently looks like it's not.

Regards
Kay
Re: [EGit] (How) can I get a git history of a folder? [message #537297 is a reply to message #537286] Tue, 01 June 2010 20:11 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Kay Huber wrote:

> Hi all
>
> Using latest nightly EGit 0.8.0.201005311531 and JGit 0.8.0.201005300828
>
> Is it possible (yet) to see the git history of a folder? It currently
> looks like it's not.

Works here. You may be looking at a place where there is only the initial
contribution visible when a path filter is applied. EGit does not support
grafts yet, which means that the history may be much shorter in EGit than in
C Git.

-- robin
Re: [EGit] (How) can I get a git history of a folder? [message #537302 is a reply to message #537297] Tue, 01 June 2010 20:43 Go to previous messageGo to next message
Kay Huber is currently offline Kay HuberFriend
Messages: 36
Registered: July 2009
Member
Thanks for the reply Robin.

I checked again with a fresh workspace, new project, freshly created local git repo with it, added folder and a test file, committed, changed something, re-committed and then tried to see the history of

a) the project
or
b) a folder in the project

I succeeded on neither of them. Since it works for you I assume, I'm just not looking at the right place.

These are the places I checked (screenshots):
- Right click on file, "Compare With", "History..." -> works fine (http://screencast.com/t/ZWY1NmFlYWEt)
- Right click on project, "Compare With", everything greyed out (http://screencast.com/t/MDQwMjc2)
- Right click on folder, "Compare With", everything greyed out (http://screencast.com/t/NWY3YzZiYz)

I also had a look at "right click", "Team", but there's no history there. Also checked the "Git Repositories" view (http://screencast.com/t/MWJjZjFmYj).

Regards
Kay
Re: [EGit] (How) can I get a git history of a folder? [message #537354 is a reply to message #537302] Wed, 02 June 2010 07:36 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Kay Huber wrote:

> Thanks for the reply Robin.
>
> I checked again with a fresh workspace, new project, freshly created local
> git repo with it, added folder and a test file, committed, changed
> something, re-committed and then tried to see the history of
>
> a) the project
> or
> b) a folder in the project
>
> I succeeded on neither of them. Since it works for you I assume, I'm just
> not looking at the right place.
>
> These are the places I checked (screenshots):
> - Right click on file, "Compare With", "History..." -> works fine
> (http://screencast.com/t/ZWY1NmFlYWEt)
> - Right click on project, "Compare
> With", everything greyed out (http://screencast.com/t/MDQwMjc2)
> - Right click on folder, "Compare With", everything greyed out
> (http://screencast.com/t/NWY3YzZiYz)

The latter two I don't think of as getting the history. It would
be useful to have behavior there, but not "history".

Try this instead to see the history

- Right click > Show In > History
- drag folder to history (if open)

-- robin
Re: [EGit] (How) can I get a git history of a folder? [message #537357 is a reply to message #537354] Wed, 02 June 2010 07:50 Go to previous messageGo to next message
Kay Huber is currently offline Kay HuberFriend
Messages: 36
Registered: July 2009
Member
Robin Rosenberg wrote on Wed, 02 June 2010 03:36
Kay Huber wrote:

> These are the places I checked (screenshots):
> - Right click on file, "Compare With", "History..." -> works fine
> (http://screencast.com/t/ZWY1NmFlYWEt)
> - Right click on project, "Compare
> With", everything greyed out (http://screencast.com/t/MDQwMjc2)
> - Right click on folder, "Compare With", everything greyed out
> (http://screencast.com/t/NWY3YzZiYz)

The latter two I don't think of as getting the history. It would
be useful to have behavior there, but not "history".


I quickly checked on how the history with e.g. SVN/Subclipse can be viewed. There it's "Team", "Show History".

Robin Rosenberg wrote on Wed, 02 June 2010 03:36

Try this instead to see the history

- Right click > Show In > History
- drag folder to history (if open)


Indeed, that's the location I didn't know of - thanks for the hint. Actually it's even documented in the user guide. Must have missed that, sorry!

It may be worth thinking about adding the history also to "Team" menu - as mentioned above. For former SVN/Subclipse users, that's probably where they look for it.

Regards
Kay

[Updated on: Wed, 02 June 2010 07:55]

Report message to a moderator

Re: [EGit] (How) can I get a git history of a folder? [message #537548 is a reply to message #537357] Wed, 02 June 2010 20:08 Go to previous messageGo to next message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Kay Huber wrote:

> Robin Rosenberg wrote on Wed, 02 June 2010 03:36
>> Kay Huber wrote:
>>
>> > These are the places I checked (screenshots):
>> > - Right click on file, "Compare With", "History..." -> works fine
>> > (http://screencast.com/t/ZWY1NmFlYWEt)
>> > - Right click on project, "Compare
>> > With", everything greyed out (http://screencast.com/t/MDQwMjc2)
>> > - Right click on folder, "Compare With", everything greyed out
>> > (http://screencast.com/t/NWY3YzZiYz)
>>
>> The latter two I don't think of as getting the history. It would
>> be useful to have behavior there, but not "history".
>
>
> I quickly checked on how the history with e.g. SVN/Subclipse can be
> viewed. There it's "Team", "Show History".
>
> Robin Rosenberg wrote on Wed, 02 June 2010 03:36
>> Try this instead to see the history
>>
>> - Right click > Show In > History
>> - drag folder to history (if open)
>
>
> Indeed, that's the location I didn't know of - thanks for the hint.
> It may be worth thinking about adding the history also to "Team" menu - as
> mentioned above. For former SVN/Subclipse users, that's probably where
> they look for it.

I placed it the The team menu from the start myself, but somebody moved it
and I wasn't fast enough to reject the patch. It pussled me a bit too
becuase I didn't find it myself. I haven't checked the official user
interface guidelines yet to see if the move is consistent with those. It
is confusing though.

-- robin
Re: [EGit] (How) can I get a git history of a folder? [message #537875 is a reply to message #537548] Fri, 04 June 2010 01:13 Go to previous messageGo to next message
Bernard Leach is currently offline Bernard LeachFriend
Messages: 8
Registered: July 2009
Junior Member
+1 for the Team menu.

The CVS provider has the following group in the Team menu;

Tag As Version...
Branch...
Merge...
Switch to Another Branch or Version...
Show Annotation
Show History

If I right-click "Show in->" on a CVS project it says '<No Applicable Views>', on a single file the History option is there and works.
Re: [EGit] (How) can I get a git history of a folder? [message #538086 is a reply to message #537286] Fri, 04 June 2010 21:21 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
See http://wiki.eclipse.org/EGit/User_Guide#History_View_Configu ration

- select the folder you want to see the history for e.g. in package explorer
- Show In > History should open the git history view
- ensure that none of the filter toggle buttons is down [1]

[1] http://wiki.eclipse.org/Image:Egit-0.8-history-view-toggle-n one.png


Re: [EGit] (How) can I get a git history of a folder? [message #543049 is a reply to message #537286] Mon, 28 June 2010 09:52 Go to previous messageGo to next message
Mike Wilson is currently offline Mike WilsonFriend
Messages: 9
Registered: July 2009
Junior Member
Making the history command available through ShowIn only is *extremely* confusing and just plain wrong. The ShowIn menu section isn't even shown in Eclipse's Java EE perspective so I spent an hour trying to find this!

Bad design isn't justified by documenting it in the User Guide. Any team provider in Eclipse should try to follow the precedent of the existing CVS and SVN providers when possible. If someone think they are smarter than that, then please put work in to synchronize changes with the CVS and SVN providers as well, and relieve the rest of us from hide-and-seek games.

I have no problem with history being available in ShowIn also, but removing it from the Team menu will confuse users forever. The person behind this patch needs to step up and defend this change.
Re: [EGit] (How) can I get a git history of a folder? [message #543136 is a reply to message #543049] Mon, 28 June 2010 13:51 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan LayFriend
Messages: 342
Registered: July 2009
Senior Member
"Mike Wilson" <mikewse@hotmail.com> wrote in message
news:i09rdr$ol9$1@build.eclipse.org...
> Making the history command available through ShowIn only is *extremely*
> confusing and just plain wrong. The ShowIn menu section isn't even shown
> in Eclipse's Java EE perspective so I spent an hour trying to find this!

I agree that we should show that menu item in the context menu again.

> Bad design isn't justified by documenting it in the User Guide. Any team
> provider in Eclipse should try to follow the precedent of the existing CVS
> and SVN providers when possible. If someone think they are smarter than
> that, then please put work in to synchronize changes with the CVS and SVN
> providers as well, and relieve the rest of us from hide-and-seek games.

Huh, you are very passionate? But I do not believe that someone thinks he or
she is smarter than anybody else. At least I do not see anything that
indicates that, do you? I believe that he or she just was not aware of the
fact that the ShowIn menu section is not shown in some perspectives.

Stefan
Re: [EGit] (How) can I get a git history of a folder? [message #543695 is a reply to message #537286] Wed, 30 June 2010 10:43 Go to previous messageGo to next message
Bernard Leach is currently offline Bernard LeachFriend
Messages: 8
Registered: July 2009
Junior Member
There 's an open enhancement request for this menu item now.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=316274
Re: [EGit] (How) can I get a git history of a folder? [message #545746 is a reply to message #543136] Thu, 08 July 2010 21:43 Go to previous messageGo to next message
Mike Wilson is currently offline Mike WilsonFriend
Messages: 9
Registered: July 2009
Junior Member
Stefan Lay wrote on Mon, 28 June 2010 09:51
I do not believe that someone thinks he or she is smarter than anybody else. At least I do not see anything that
indicates that, do you?

He or she was apparently under the impression to be smarter than Robin, otherwise a discussion would have been initiated before removing Robin's UX mapping.

Re: [EGit] (How) can I get a git history of a folder? [message #545752 is a reply to message #545746] Thu, 08 July 2010 22:32 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Mike Wilson wrote:

> Stefan Lay wrote on Mon, 28 June 2010 09:51
>> I do not believe that someone thinks he or she is smarter than anybody
>> else. At least I do not see anything that indicates that, do you?
>
> He or she was apparently under the impression to be smarter than Robin,
> otherwise a discussion would have been initiated before removing Robin's
> UX mapping.

</end thread here>
Re: [EGit] (How) can I get a git history of a folder? [message #580954 is a reply to message #537297] Tue, 01 June 2010 20:43 Go to previous message
Kay Huber is currently offline Kay HuberFriend
Messages: 36
Registered: July 2009
Member
Thanks for the reply Robin.

I checked again with a fresh workspace, new project, freshly created local git repo with it, added folder and a test file, committed, changed something, re-committed and then tried to see the history of

a) the project
or
b) a folder in the project

I succeeded on neither of them. Since it works for you I assume, I'm just not looking at the right place.

These are the places I checked (screenshots):
- Right click on file, "Compare With", "History..." -> works fine (http://screencast.com/t/ZWY1NmFlYWEt)
- Right click on project, "Compare With", everything greyed out (http://screencast.com/t/MDQwMjc2)
- Right click on folder, "Compare With", everything greyed out (http://screencast.com/t/NWY3YzZiYz)

I also had a look at "right click", "Team", but there's no history there. Also checked the "Git Repositories" view (http://screencast.com/t/MWJjZjFmYj).

Regards
Kay
Re: [EGit] (How) can I get a git history of a folder? [message #580965 is a reply to message #537302] Wed, 02 June 2010 07:36 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Kay Huber wrote:

> Thanks for the reply Robin.
>
> I checked again with a fresh workspace, new project, freshly created local
> git repo with it, added folder and a test file, committed, changed
> something, re-committed and then tried to see the history of
>
> a) the project
> or
> b) a folder in the project
>
> I succeeded on neither of them. Since it works for you I assume, I'm just
> not looking at the right place.
>
> These are the places I checked (screenshots):
> - Right click on file, "Compare With", "History..." -> works fine
> (http://screencast.com/t/ZWY1NmFlYWEt)
> - Right click on project, "Compare
> With", everything greyed out (http://screencast.com/t/MDQwMjc2)
> - Right click on folder, "Compare With", everything greyed out
> (http://screencast.com/t/NWY3YzZiYz)

The latter two I don't think of as getting the history. It would
be useful to have behavior there, but not "history".

Try this instead to see the history

- Right click > Show In > History
- drag folder to history (if open)

-- robin
Re: [EGit] (How) can I get a git history of a folder? [message #580980 is a reply to message #537354] Wed, 02 June 2010 07:50 Go to previous message
Kay Huber is currently offline Kay HuberFriend
Messages: 36
Registered: July 2009
Member
Robin Rosenberg wrote on Wed, 02 June 2010 03:36
> Kay Huber wrote:
>
> > These are the places I checked (screenshots):
> > - Right click on file, "Compare With", "History..." -> works fine
> > (http://screencast.com/t/ZWY1NmFlYWEt)
> > - Right click on project, "Compare
> > With", everything greyed out (http://screencast.com/t/MDQwMjc2)
> > - Right click on folder, "Compare With", everything greyed out
> > (http://screencast.com/t/NWY3YzZiYz)
>
> The latter two I don't think of as getting the history. It would
> be useful to have behavior there, but not "history".


I quickly checked on how the history with e.g. SVN/Subclipse can be viewed. There it's "Team", "Show History".

Robin Rosenberg wrote on Wed, 02 June 2010 03:36
> Try this instead to see the history
>
> - Right click > Show In > History
> - drag folder to history (if open)


Indeed, that's the location I didn't know of - thanks for the hint.
It may be worth thinking about adding the history also to "Team" menu - as mentioned above. For former SVN/Subclipse users, that's probably where they look for it.

Regards
Kay
Re: [EGit] (How) can I get a git history of a folder? [message #581058 is a reply to message #580980] Wed, 02 June 2010 20:08 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Kay Huber wrote:

> Robin Rosenberg wrote on Wed, 02 June 2010 03:36
>> Kay Huber wrote:
>>
>> > These are the places I checked (screenshots):
>> > - Right click on file, "Compare With", "History..." -> works fine
>> > (http://screencast.com/t/ZWY1NmFlYWEt)
>> > - Right click on project, "Compare
>> > With", everything greyed out (http://screencast.com/t/MDQwMjc2)
>> > - Right click on folder, "Compare With", everything greyed out
>> > (http://screencast.com/t/NWY3YzZiYz)
>>
>> The latter two I don't think of as getting the history. It would
>> be useful to have behavior there, but not "history".
>
>
> I quickly checked on how the history with e.g. SVN/Subclipse can be
> viewed. There it's "Team", "Show History".
>
> Robin Rosenberg wrote on Wed, 02 June 2010 03:36
>> Try this instead to see the history
>>
>> - Right click > Show In > History
>> - drag folder to history (if open)
>
>
> Indeed, that's the location I didn't know of - thanks for the hint.
> It may be worth thinking about adding the history also to "Team" menu - as
> mentioned above. For former SVN/Subclipse users, that's probably where
> they look for it.

I placed it the The team menu from the start myself, but somebody moved it
and I wasn't fast enough to reject the patch. It pussled me a bit too
becuase I didn't find it myself. I haven't checked the official user
interface guidelines yet to see if the move is consistent with those. It
is confusing though.

-- robin
Re: [EGit] (How) can I get a git history of a folder? [message #581148 is a reply to message #537548] Fri, 04 June 2010 01:14 Go to previous message
Bernard Leach is currently offline Bernard LeachFriend
Messages: 8
Registered: July 2009
Junior Member
+1 for the Team menu.

The CVS provider has the following group in the Team menu;

Tag As Version...
Branch...
Merge...
Switch to Another Branch or Version...
Show Annotation
Show History

If I right-click "Show in->" on a CVS project it says '<No Applicable Views>', on a single file the History option is there and works.
Re: [EGit] (How) can I get a git history of a folder? [message #582071 is a reply to message #543136] Thu, 08 July 2010 21:43 Go to previous message
Mike Wilson is currently offline Mike WilsonFriend
Messages: 9
Registered: July 2009
Junior Member
Stefan Lay wrote on Mon, 28 June 2010 09:51
> I do not believe that someone thinks he or she is smarter than anybody else. At least I do not see anything that
> indicates that, do you?

He or she was apparently under the impression to be smarter than Robin, otherwise a discussion would have been initiated before removing Robin's UX mapping.
Re: [EGit] (How) can I get a git history of a folder? [message #582086 is a reply to message #545746] Thu, 08 July 2010 22:32 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
Mike Wilson wrote:

> Stefan Lay wrote on Mon, 28 June 2010 09:51
>> I do not believe that someone thinks he or she is smarter than anybody
>> else. At least I do not see anything that indicates that, do you?
>
> He or she was apparently under the impression to be smarter than Robin,
> otherwise a discussion would have been initiated before removing Robin's
> UX mapping.

</end thread here>
Previous Topic:Automatically share projects imported in eclipse
Next Topic:Egit and gitosis
Goto Forum:
  


Current Time: Tue Mar 19 02:27:12 GMT 2024

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

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

Back to the top