Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Egit overrides skip-worktree bit(rebase and reset command reset the skip-worktree bit)
Egit overrides skip-worktree bit [message #1821996] Tue, 25 February 2020 12:39 Go to next message
Alessandro Fardin is currently offline Alessandro FardinFriend
Messages: 6
Registered: March 2016
Junior Member
In order to tell git to not consider modified some files exists the command:
git update-index --skip-worktree filename
that set the bit to the corresponding file in the local repository.

That bit shall not be overriden by any git command but --no-skip-worktree.
using git cli command as pull --rebase, reset --hard the bit stay untouched
using the same commands and using the stash from egit iside eclipe, causes the skip-worktree bits to be reseted, so all files results modified once again.
This behavior, causes us to set the skip-worktree bit every time we do a pull-rebase.
This is very inconvenient for us, and some developer has starting complaining and dropped eclipse in favour of VS code.

I've found from egit/jgit bugzilla some related bugs:
Bug 477771
Bug 477745
Bug 477749

I've post on these bus on bugzilla some week ago, but I haven't received any feedback.
Are there any plan to fix the support of --skip-worktree on jgit/egit?

Thank you
regards
Alessandro

Re: Egit overrides skip-worktree bit [message #1822081 is a reply to message #1821996] Wed, 26 February 2020 23:11 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1178
Registered: July 2009
Senior Member
Why do you need skip-worktree in your development workflow ?
Are you aware of this note in the git documentation:
https://git-scm.com/docs/git-update-index#_notes ?
Re: Egit overrides skip-worktree bit [message #1822093 is a reply to message #1822081] Thu, 27 February 2020 07:38 Go to previous messageGo to next message
Alessandro Fardin is currently offline Alessandro FardinFriend
Messages: 6
Registered: March 2016
Junior Member
Hi Matthias, thank you for reply.
Yes I've read it and I agree with that.
But I can say that using standard git commands or other IDE (with the standard git behavior), our workflow works well.
The developers clone and checkout their repository the run the scripts that sets the skip-worktree commands for all the relevant files and then they are done...
that files stay unchanged whether stash or rebase the need to do.
Anyway I think that eclipse should behave like standard git.
I love eclipse and I hope developer stay with it, but this this problem is causing some migration in my office.
Re: Egit overrides skip-worktree bit [message #1822615 is a reply to message #1822093] Tue, 10 March 2020 13:46 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1178
Registered: July 2009
Senior Member
Maybe you want to contribute the missing support for skip-worktree flag ?
Re: Egit overrides skip-worktree bit [message #1822704 is a reply to message #1822615] Wed, 11 March 2020 16:31 Go to previous messageGo to next message
Alessandro Fardin is currently offline Alessandro FardinFriend
Messages: 6
Registered: March 2016
Junior Member
I'm sorry, but I've no skill in java language and eclipse plugin development and currently I have not much time.
but I would very glad to help you in testing.
Re: Egit overrides skip-worktree bit [message #1832377 is a reply to message #1822704] Thu, 17 September 2020 10:11 Go to previous messageGo to next message
Alessandro Fardin is currently offline Alessandro FardinFriend
Messages: 6
Registered: March 2016
Junior Member
Are there any news about this issues?
Re: Egit overrides skip-worktree bit [message #1832382 is a reply to message #1832377] Thu, 17 September 2020 10:35 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 374
Registered: August 2016
Senior Member
No.
Previous Topic:Pull Request in Eclipse client
Next Topic:JGit as a read-only FileSystemProvider
Goto Forum:
  


Current Time: Tue Jun 22 14:55:02 GMT 2021

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

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

Back to the top