Skip to main content



      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 07:39 Go to next message
Eclipse UserFriend
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 18:11 Go to previous messageGo to next message
Eclipse UserFriend
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 02:38 Go to previous messageGo to next message
Eclipse UserFriend
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 09:46 Go to previous messageGo to next message
Eclipse UserFriend
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 12:31 Go to previous messageGo to next message
Eclipse UserFriend
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 06:11 Go to previous messageGo to next message
Eclipse UserFriend
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 06:35 Go to previous message
Eclipse UserFriend
No.
Previous Topic:Pull Request in Eclipse client
Next Topic:JGit as a read-only FileSystemProvider
Goto Forum:
  


Current Time: Fri Sep 26 05:23:00 EDT 2025

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

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

Back to the top