Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » jGit - partial stash(Is it possible?)
jGit - partial stash [message #1801327] Wed, 16 January 2019 16:00 Go to next message
Eclipse UserFriend
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 17:41 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 05:22:54 EDT 2025

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

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

Back to the top