Closed ghost closed 13 years ago
You might take a look at https://github.com/nulltoken/libgit2sharp/commits/topic/status. This functionality is currently a WIP.
@Renald full Diff is not available yet. However, provided all you want is a list of list of new/modified/removed files between two commits, you might more or less achieve your goal with the following recipe:
If you're after the list of modified files one is about to commit, then @tclem hint is the way to follow. I hope it won't be long before it gets merged.
Hope this helps.
Hello - Has this issue been added to the libgit2sharp source?
I want to get just the files modified during a commit, something like the git command
git show --pretty="format:" --name-only sha.
Thanks,
@Rdot Maybe this test would fit your need.
It demonstrates how to compare two commit trees, and, more specifically, the current Head
against its parent.
Of course, by peeking at the others tests in the file, you'll see that you can compare any couple of Tree
s within the boundary of the Repository
.
@nulltoken Very awesome, exactly what I needed. Thanks for the link :+1:
This is nice, but how can get the number of lines added, deleted modified for the given sha? (git show -w -C -shortstat ..)
@StanBPublic We try to keep the tracker for issues and features. Could you please direct this question to StackOverflow (there's a libgit2sharp
tag). We'll be happy to answer you there.
Hi, I think the original question isn't actually answered. The Hitchhiker's guide on [git-log-name-status] (https://github.com/libgit2/libgit2sharp/wiki/git-log-name-status) returns a different list of files than what I get through: git log --name-only 0138ef5..899809f It also takes a LOT longer than git log --name-only (instant) vs. 20.633 seconds. I have also tried StackOverflow
Hi, How to, with a specific commit, get a list of modified files?
Thanks