Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: README.git-cl.md

Issue 2269593002: Add git cl bash completition. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | git_cl_completion.sh » ('j') | git_cl_completion.sh » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # git-cl 1 # git-cl
2 2
3 The git-cl README describes the git-cl command set. This document describes how 3 The git-cl README describes the git-cl command set. This document describes how
4 code review and git work together in general, intended for people familiar with 4 code review and git work together in general, intended for people familiar with
5 git but unfamiliar with the code review process supported by Rietveld and 5 git but unfamiliar with the code review process supported by Rietveld and
6 Gerrit. 6 Gerrit.
7 7
8 8
9 ## Reitveld concepts and terms 9 ## Reitveld concepts and terms
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 90
91 O---A---B---C 91 O---A---B---C
92 \ \ \ 92 \ \ \
93 A'--B'--C' 93 A'--B'--C'
94 94
95 Which is ugly, but it accurately tracks the real history of your work, can be 95 Which is ugly, but it accurately tracks the real history of your work, can be
96 thrown away at the end by committing A+A' as a single `squash` commit. 96 thrown away at the end by committing A+A' as a single `squash` commit.
97 97
98 In practice, this comes up pretty rarely. Suggestions for better workflows are 98 In practice, this comes up pretty rarely. Suggestions for better workflows are
99 welcome. 99 welcome.
100
101 ## Bash auto complition
102
103 1. Ensure that your base git commands are autocompleted
104 [doc](https://git-scm.com/book/en/v1/Git-Basics-Tips-and-Tricks).
105 2. Add this to your .bashrc:
106
107 # The next line enables bash completion for git cl.
108 if [ -f "$HOME/bin/depot_tools/git_cl_completion.sh" ]; then
109 . "$HOME/bin/depot_tools/git_cl_completion.sh"
110 fi
111
112 3. Profit.
OLDNEW
« no previous file with comments | « no previous file | git_cl_completion.sh » ('j') | git_cl_completion.sh » ('J')

Powered by Google App Engine
This is Rietveld 408576698