| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 2 """ | 6 """ |
| 3 Provides an augmented `git log --graph` view. In particular, it also annotates | 7 Provides an augmented `git log --graph` view. In particular, it also annotates |
| 4 commits with branches + tags that point to them. Items are colorized as follows: | 8 commits with branches + tags that point to them. Items are colorized as follows: |
| 5 * Cyan - Currently checked out branch | 9 * Cyan - Currently checked out branch |
| 6 * Green - Local branch | 10 * Green - Local branch |
| 7 * Red - Remote branches | 11 * Red - Remote branches |
| 8 * Magenta - Tags | 12 * Magenta - Tags |
| 9 * Blue background - The currently checked out commit | 13 * Blue background - The currently checked out commit |
| 10 """ | 14 """ |
| 11 import sys | 15 import sys |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 pass | 81 pass |
| 78 finally: | 82 finally: |
| 79 sys.stderr.close() | 83 sys.stderr.close() |
| 80 sys.stdout.close() | 84 sys.stdout.close() |
| 81 return 0 | 85 return 0 |
| 82 | 86 |
| 83 | 87 |
| 84 if __name__ == '__main__': | 88 if __name__ == '__main__': |
| 85 sys.exit(main()) | 89 sys.exit(main()) |
| 86 | 90 |
| OLD | NEW |