Skip to main content

Module revision

Module revision 

Source
Expand description

A commit, put somewhere it can be imported from.

git as a subprocess and not gix, for now. What is needed here is rev-parse and a worktree, both of which the binary already does correctly, and a library earns its place when there is work it does better — reading many blobs, or naming a commit’s contents without materialising them. There is none of that yet.

Structs§

Splice
Which lines of a file one class occupies.
Worktree
A checkout of one commit, removed when it goes out of scope.

Enums§

Trouble

Constants§

ALL
What to ask for when what is wanted is the whole investigation.

Functions§

beneath
The commit under each of these that is not one of them.
commits_in
The commits to walk, newest first — git’s own order.
dirty
What is tracked and changed, as git says it.
forget
Takes a worktree back out, so the next worktree add on that commit is not refused by a record git kept of one nobody removed.
forked
Cuts a branch at from, replaces one class in file, and commits it.
laid_out
A checkout of from with one class replaced, and nothing committed.
named
The full hash a revspec names.
parent_of
The commit before this one, if it has one.
parents_of
Who each of these commits comes from, in one call.
read
One file, as that commit had it.
told
What each commit was called and when it was made, in one call.
went_to
Cuts a branch at that commit and moves onto it.
whoami
Who is saying it. Git’s idea of who you are, or the account’s.