-
Notifications
You must be signed in to change notification settings - Fork 889
git submodule
KindDragon edited this page Mar 14, 2013
·
2 revisions
$ git submodule status <local path>
using (var repo = new Repository("path/to/your/repo"))
{
var submodule = repo.Submodules["submodule"];
Console.WriteLine(submodule.HeadCommitId.Sha);
}
$ git submodule status --cached <local path>
using (var repo = new Repository("path/to/your/repo"))
{
var submodule = repo.Submodules["submodule"];
Console.WriteLine(submodule.IndexCommitId.Sha);
}