libgit2 / libgit2/libgit2sharp

Get commit where a given file was last modified

Open
#1,353 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.5k
Forks
925
PR merge metrics
No merged PRs in 30d

Description

Trying to emulate the following, it outputs the SHA of the commit this particular file was changed last:
git rev-list -1 HEAD file.ext
Here git-rev-list is listed under low-level plumbing commands, but I could not find how to actually use it anywhere?
How can rev-list be called with libgit2sharp or if it can not, is there any other way to get the commit where a given file was last modified?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked LibGit2Sharp Hitchhiker's Guide entry for git-rev-list and compare it with the available LibGit2Sharp usage described in the issue. Done means documenting whether the requested git rev-list -1 HEAD file.ext behavior is supported and, if not, identifying the alternative approach without leaving the question unanswered.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, git
Domain
tooling
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.