Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » jGit - partial stash(Is it possible?)
jGit - partial stash [message #1801327] Wed, 16 January 2019 21:00 Go to next message
Dave King is currently offline Dave KingFriend
Messages: 3
Registered: July 2009
Junior Member
I'd like to stash changes that have not been added to the index.

I'm very new to jgit, so I'm not sure if stashing a subset of changes is possible.

If it is possible, is there code for this somewhere?

Bigger picture - I'm trying to run Google Java Format only on code that has been added to a commit in a pre commit hook invoked via Gradle.

I'd like to stash all non added changes, run google format - add the gf changes allow the commit to run. Pop the stash after the commit.

Thoughts?

- Peace
Dave
Re: jGit - partial stash [message #1801328 is a reply to message #1801327] Wed, 16 January 2019 22:41 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
Why don't you use the list of staged files to run google-java-format only on these files ?
I think this would be easier and faster.
Previous Topic:EGit in IBM WebSphere Transformation Extender Design Studio
Next Topic:clone parameters --dissociate and --reference
Goto Forum:
  


Current Time: Sat Apr 20 00:11:13 GMT 2024

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

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

Back to the top