Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Equivalent of `git add -A` and `git show` in jGit
Equivalent of `git add -A` and `git show` in jGit [message #1002468] Fri, 18 January 2013 11:35 Go to previous message
Alireza Noori is currently offline Alireza Noori
Messages: 2
Registered: January 2013
Junior Member
I'm looking for equivalent commands for `git add -A` and `git show` in jGit.
I know how to add a single file using this code:

git.add().addFilepattern(path).call();

However, I'm used to the command:

git add -A

Which basically adds all the files automatically.

-----------

Also, I want to retrieve a specific version of a file from Git repository. In git I use:

git show HEAD~1:file.txt

How can I achieve this in jGit?

Any help will be appreciated.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic:RefSpec question Git vs. Egit
Next Topic:["Solved"] Commit in submodule wants to remove and re-add all files with folder appended a
Goto Forum:
  


Current Time: Sat May 25 09:28:58 EDT 2013

Powered by FUDForum. Page generated in 0.01679 seconds