Questions about Repository.Commits #378

Closed
KindDragon opened this Issue Mar 31, 2013 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

KindDragon commented Mar 31, 2013

How implement this git log switches:

  • Show git notes
  • FIlter to only local/remote branches
  • Show stashes
  • Show boundary commits
Member

nulltoken commented Mar 31, 2013

Show git notes

Either use the Notes property exposed by each Commit or the Notes namespace on the Repository type. See NoteFixture.cs tests for more information.

Show stashes

Either pass a revparse specification (eg. stash@{0}) to Repository.Lookup() or use the Stashes namespace on the Repository type. See StashFixture.cs tests for more information.

FIlter to only local/remote branches

The Filter type should help you with this. See CommitFixture.cs for a piece of sample code showing how to restrict the tips to local branches, for instance. Dealing with remotes would only require you to modify the pattern.

Show boundary commits

There's currently no built-in option to deal with this

Contributor

KindDragon commented Mar 31, 2013

Thank you, so only problem when filtering with boundary commits.

carlosmn closed this Mar 22, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment