Community
Participate
Working Groups
After upgrading to Eclipse 2019-09, I found the following mysterious stanzas appended to my hand-crafted $HOME/.gitconfig file: [filesystem "Oracle Corporation|13|/dev/disk1s1"] timestampResolution = 15000 nanoseconds minRacyThreshold = 0 nanoseconds Apparently this is written by JGit, as I found references to these gitconfig key strings in org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java In my opinion, JGit should not modify handcrafted .gitconfig files without prompting the user for permission. That's quite rude, to be honest! Keeping .gitconfig in sync between multiple machines is now made more difficult by JGit adding machine-specific configurations without keying them on the machine name. Can this configuration value please be moved into a JGit or Eclipse specific configuration file and kept out of $HOME/.gitconfig? At the very least, the automatically written value should contain an identifying attribution to JGit so users can understand why there is suddenly an undocumented "Oracle Corporation|13|/dev/disk1s1" configuration entry in $HOME/.gitconfig. Using a hostname or machineID in the key would probably also be a good choice, since many machines may have a /dev/disk1s1 and .gitconfig files may very well be shared and synced between multiple machines. But really, please try to stay out of handcrafted $HOME/.gitconfig files.
New Gerrit change created: https://git.eclipse.org/r/150740
New Gerrit change created: https://git.eclipse.org/r/150739
New Gerrit change created: https://git.eclipse.org/r/150742
+1 on not wanting silent changes to my curated and centrally distributed .gitconfig -1 on solutions which address this just by adding the machine name; that doesn't help me at all It's also perhaps worth noting that I'm using a "dotfiles"-type system in which ~/.gitconfig is actually a symbolic link to a file in a separate Git repository. Replacing the symbolic link with a new modified file as the current code appears to also prevents incoming changes so it is doubly problematic. By all means allow the user's .gitconfig to override your locally derived values if you really think of this as configuration. But if the main reason to stash this information in the configuration file is to just persist it across invocations, that's more cache than configuration and it belongs elsewhere.
BTW: writing this data into the user config is also confusing for beginners. See https://www.eclipse.org/forums/index.php/t/1101176/ Open the Word doc attached there, it contains a screenshot. I can fully understand that the user got confused!
New Gerrit change created: https://git.eclipse.org/r/152141
New Gerrit change created: https://git.eclipse.org/r/152140
Gerrit change https://git.eclipse.org/r/150740 was merged to [stable-5.5]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=e102bbed995f0e6d3a1a8e5db6d08f9804fd3260
Gerrit change https://git.eclipse.org/r/150739 was merged to [stable-5.5]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=838b5a84b5093c335b95a644b8888006d9e95493
Gerrit change https://git.eclipse.org/r/150742 was merged to [stable-5.5]. Commit: http://git.eclipse.org/c/egit/egit.git/commit/?id=756b57d04ae946338c129ae5cb87b4975d189446