Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Craft a commit (hunks, commit only staged changes) ?
Craft a commit (hunks, commit only staged changes) ? [message #579185] Sun, 11 April 2010 15:10
Michael Pellaton is currently offline Michael PellatonFriend
Messages: 289
Registered: July 2009
Senior Member

I figured out how to stage all changes of a file in the commit dialog
(and then pressing cancel), and if the file gets changes afterwards,
it gets decorated accordingly. However, how can I now commit just the
staged changes - not all changes?

What EGit IMHO does right now is:
# commit all changes of the file
$ git commit -a

I am looking for the EGit equivalents of the following git commands:
# commit only staged changes
$ git commit

# unstage a file
$ git reset HEAD

# only stage some hunks of the changes of the file
$ git add -i

The following additional questions are all related to staging/
- How can I edit the hunks of a change?
- How can I diff the staged changes vs repo ($ git diff --cached)?
- How can I diff an entire project, not just a single file (context menu
always disbaled when diff is done on a project/package) ($ git diff)?


Previous Topic:Team menu does not offer Share Project option
Next Topic:Stashing in EGit
Goto Forum:

Current Time: Tue Jun 02 13:33:54 GMT 2020

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

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

Back to the top