diff options
| author | Vicent Marti <tanoku@gmail.com> | 2010-10-29 02:22:38 +0300 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2010-10-29 02:22:38 +0300 |
| commit | a13bc8e74f31d9d326153cb375521c47851eb1eb (patch) | |
| tree | a0a8c00ca870d11aa8c22d6b241834926c6e5205 /src/revwalk.c | |
| parent | aaf68dc443bf60f1703b4b9fabd75d7a901f663f (diff) | |
| download | libgit2-a13bc8e74f31d9d326153cb375521c47851eb1eb.tar.gz | |
Add getter methods for object owners
You can know access the owning repository of any existing object, or the
repository on which a revision walker is working on.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/revwalk.c')
| -rw-r--r-- | src/revwalk.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/revwalk.c b/src/revwalk.c index e8d686fe3..8cd444fb2 100644 --- a/src/revwalk.c +++ b/src/revwalk.c @@ -80,6 +80,12 @@ void git_revwalk_free(git_revwalk *walk) free(walk); } +git_repository *git_revwalk_repository(git_revwalk *walk) +{ + assert(walk); + return walk->repo; +} + void git_revwalk_sorting(git_revwalk *walk, unsigned int sort_mode) { if (walk->walking) |
