Git development
 help / color / mirror / Atom feed
From: Farrukh Najmi <farrukh@wellfleetsoftware.com>
To: git@vger.kernel.org
Subject: How to do equivalent of git-status using jgit?
Date: Thu, 13 Nov 2008 10:10:58 -0500	[thread overview]
Message-ID: <491C4382.4080602@wellfleetsoftware.com> (raw)


I am making slow but steady progress thanks to all the help from the 
list. Thank you.

I need some guidance on how use jgit to determine what files have 
uncommitted changes in the local workspace and what is their status with 
respect to the GitIndex.

My goal is to implement a method with the following signature:

void commit(String commitMessage) {
  ...
}

I am looking at the doCommit method at:

<http://github.com/myabc/nbgit/tree/master/src/org/nbgit/util/GitCommand.java#L306>

This method takes a list of files. What I need is to somehow determine 
the list of files that need committing.

Thanks for your help.

-- 
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com

                 reply	other threads:[~2008-11-13 15:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=491C4382.4080602@wellfleetsoftware.com \
    --to=farrukh@wellfleetsoftware.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox