Is it possible to get all the changed/added/removed files from a repository, and then stage those files? If yes, how?
I was doing something like this:
foreach (string file in Directory.GetFiles("dir/repo", "*", SearchOption.AllDirectories))
{
repo.Stage(file);
}
However, it does not satisfy me because I stage all of the untracked files. But I want to stage all of the modified/added/deleted files.