Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » File dirty recognition(recognize filenames starting with . as dirty)
File dirty recognition [message #1811074] Mon, 26 August 2019 14:14 Go to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 69
Registered: March 2010
Location: Ottawa, ON, Canada
Member
I am editing a file .bashrc in Ubuntu18.04.3 with Eclipse 4.12 and Egit/Jgit does not recognize it as changed in the staging view. Command-line Git has no problems with the status of this file. How do I resolve this situation?

[Updated on: Mon, 26 August 2019 14:15]

Report message to a moderator

Re: File dirty recognition [message #1811077 is a reply to message #1811074] Mon, 26 August 2019 14:31 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1105
Registered: July 2009
Senior Member
Is this .bashrc file located in a git repository which you have opened in Eclipse ?
Is this file residing in an Eclipse project ?
Can you retry with JGit/EGit 5.4.2 [1] or latest build from master [2]?

[1] https://download.eclipse.org/egit/updates
[2] https://download.eclipse.org/egit/updates-nightly
Re: File dirty recognition [message #1811094 is a reply to message #1811077] Mon, 26 August 2019 18:30 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 69
Registered: March 2010
Location: Ottawa, ON, Canada
Member
Yes, the file is located in a Git repository and in a Git project. I am using Eclipse 2019-06 which is up to date so I assume I am using the latest Egit/Jgit. I have no idea how to access your master repository and little time. This is of relatively low priority for me as the workaround is to use command-line Git. Incidentally, any other file in the project is handled OK. I think that the problem may be associated with the leading . in the file name which has special meaning in Linux.
Re: File dirty recognition [message #1811100 is a reply to message #1811094] Mon, 26 August 2019 22:58 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 69
Registered: March 2010
Location: Ottawa, ON, Canada
Member
I have never used Eclipse update and I found the instructions provided very hard to understand. For example, it said to paste a URL into Eclipse but never said what page you should be on. I guess that you are using the Software Update page and are setting a new source but I was not sure what was going on, so for safety, I did nothing.
Re: File dirty recognition [message #1811105 is a reply to message #1811100] Tue, 27 August 2019 04:34 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30687
Registered: July 2009
Senior Member
Yes, it's not so obvious how that works. In Window -> Preferences -> Install/Update -> Available Software Sites you can "Add..." update sites and use the check mark to determine if it is enabled. This way you can add additional sites that will be checked for updates.

Alternatively you can use Help -> Install New Software. Paste an update site there. There is a "Hide items that are already installed", so to do an update, you'd have to uncheck that to be able to update something you've already installed; the processing will turn this into an update request if you "install" something that is already installed.
Re: File dirty recognition [message #1811117 is a reply to message #1811105] Tue, 27 August 2019 06:59 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 69
Registered: March 2010
Location: Ottawa, ON, Canada
Member
When I look at the Eclipse Update Site web page, I find no URL's. I do find JAR files that look as if they should go into the Features directory of my Eclipse installation I am sorry but the instructions for whatever manner of installation look incomplete and hence to me, unsafe. I understood how the update sites procedure is supposed to work, but the lack of URL's threw me for a loop.

[Updated on: Tue, 27 August 2019 07:02]

Report message to a moderator

Re: File dirty recognition [message #1811140 is a reply to message #1811117] Tue, 27 August 2019 13:03 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 69
Registered: March 2010
Location: Ottawa, ON, Canada
Member
I managed to get the latest Egit and Jgit installed and was able to check that the Git staging view will not recognize any file that starts with a . . I tried with a new file named .test.
Re: File dirty recognition [message #1811141 is a reply to message #1811140] Tue, 27 August 2019 13:05 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 69
Registered: March 2010
Location: Ottawa, ON, Canada
Member
Error on my part, .test was recognized in the staging view but not .bashrc
Re: File dirty recognition [message #1811142 is a reply to message #1811141] Tue, 27 August 2019 13:17 Go to previous messageGo to next message
Jonathan Gossage is currently offline Jonathan GossageFriend
Messages: 69
Registered: March 2010
Location: Ottawa, ON, Canada
Member
I verified that this problem also exists if the file is called .profile. The problem seems to be restricted to the staging view recognizing dotted files that are significant to Linux.
Re: File dirty recognition [message #1811271 is a reply to message #1811142] Fri, 30 August 2019 01:01 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1105
Registered: July 2009
Senior Member
I cannot reproduce this problem on Mac using 5.5.0 M3 which can be installed from [1] or [2].
Note that [2] is a temporary update site which will be removed after final 5.5.0 has been released on Sept 19.

[1] https://repo.eclipse.org/content/unzip/releases.unzip/org/eclipse/egit/org.eclipse.egit.repository/5.5.0.201908280940-m3/org.eclipse.egit.repository-5.5.0.201908280940-m3.zip-unzip/
[2] https://download.eclipse.org/egit/staging/v5.5.0.201908280940-m3
Previous Topic:Connection Error while accessing repository
Next Topic:EGit freezes Eclipse in 2019-06 release
Goto Forum:
  


Current Time: Mon Dec 09 20:26:35 GMT 2019

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

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

Back to the top