Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » 'Auto-fetch' for Synchronize View
'Auto-fetch' for Synchronize View [message #658416] Tue, 08 March 2011 13:04 Go to next message
Leonard Ehrenfried is currently offline Leonard EhrenfriedFriend
Messages: 1
Registered: March 2011
Junior Member
I have been demo-ing Egit today to my team and one question came up during that presentation: If I open the Synchronize View, after having pushed one or more commits to a remote repository, I still see the the exact same commits. They show up as differences to the tracked remote branch.

Maybe I don't fully understand git, but this seems counterintuitive to me.

Steps to reproduce the behaviour:

1. Make a commit A
2. Push said commit to, say, origin/master
2. Open the Synchronize View, see that the commit A shows up as a difference between the branches
3. Fetch from Upstream (origin/master)
4. Open the Synchronise View again and observe that now commit A does not show up as a difference

As I said above, this could be desirable behaviour for reasons I haven't yet grasped and I'd be greatful, if in this case someone could help clear up my confusion.
Re: 'Auto-fetch' for Synchronize View [message #658552 is a reply to message #658416] Tue, 08 March 2011 22:46 Go to previous message
Robin Rosenberg is currently offline Robin RosenbergFriend
Messages: 332
Registered: July 2009
Senior Member
On 2011-03-08 14.04, leonard.ehrenfried@web.de wrote:
> I have been demo-ing Egit today to my team and one question came up
> during that presentation: If I open the Synchronize View, after having
> pushed one or more commits to a remote repository, I still see the the
> exact same commits. They show up as differences to the tracked remote
> branch.
>
> Maybe I don't fully understand git, but this seems counterintuitive to me.
> Steps to reproduce the behaviour:
>
> 1. Make a commit A
> 2. Push said commit to, say, origin/master
> 2. Open the Synchronize View, see that the commit A shows up as a
> difference between the branches
> 3. Fetch from Upstream (origin/master)
> 4. Open the Synchronise View again and observe that now commit A does
> not show up as a difference
>
> As I said above, this could be desirable behaviour for reasons I haven't
> yet grasped and I'd be greatful, if in this case someone could help
> clear up my confusion.

You understand quite well I think. EGit doesn't (but should) update the
remote tracking branch on push.

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=317411

-- robin
Previous Topic:JGit JavaDoc and get log only certain range
Next Topic:Passphrase fails when using SourceForge
Goto Forum:
  


Current Time: Sun Apr 05 04:57:26 GMT 2020

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

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

Back to the top