Skip to content

A tool for visualizing the state of a git repository, particularly ongoing work.

License

Notifications You must be signed in to change notification settings

google/git-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

git-tree

This is not an officially supported Google product.

git-tree is a wrapper around git log --graph that heuristically determines what set of commits should be displayed. It is designed for use with branch-heavy workflows similar to those supported by the Mercurial evolve extension.

It accepts the following command-line flags:

  • --debug/-d: Used for debugging git-tree's commit selection. Displays the commits that git-tree is trying to show as well as the inclusion/exclusions arguments it is passing to git log.

Additionally, any remaining arguments after a -- are passed through to git log, allowing the user to set up their own formatting options.

For example, I have the following alias in my .bashrc to invoke git-tree:

alias git-tree='git-tree -- --format="%C(auto)%h %d %<(50,trunc)%s"'

This produces output similar to the following (albeit colorized by default, which makes it much more readable than this example):

* 49aaffb  (origin/step7-last-futures, step7-last-futures) Remove the remaining uses of futures from..
* 4450f7b  (HEAD -> step6-buttons-2, origin/step6-buttons-2) Remove another use of button futures.
* f60a7dc  Add a dynamic call mechanism for client callbacks.
| * f2c8713  (lw2) More scratch work for virtualized time.
| | * 6e3e0c3  (origin/virtclk-scratch, virtclk-scratch) Work on virtualized lightweight clock.
| |/
|/|
* | 34282e5  (origin/step1-rng-size, step1-rng-size) Migrate the crypto library to the lightweight RN..
* | 5959c85  (origin/futures-size, futures-size) Add the size dump for the futures-based OpenSK!
* | 7f294f9  Start working on a lightweight RNG driver.
|/
* bdb3b8c  (origin/original-size, original-size) Store information about the size of the app with..
* e804c89  (origin/submods-to-dirs, submods-to-dirs) Replace the submodules with local directories. T..
* 57e79c1  (origin/master, origin/HEAD, master) Merge pull request #82 from jmichelp/master

About

A tool for visualizing the state of a git repository, particularly ongoing work.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages