From 0edb04685bfac6ba0373398f3e9ee561dbaae6bf Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 16 Nov 2014 21:39:05 -0500 Subject: codereview: make commit -a the default; warn about uncommitted changes at upload also update README.md for github Change-Id: I7d578a902ffed7f6d69780721e29a1972b6f6992 --- man/man1/codereview.1 | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'man') diff --git a/man/man1/codereview.1 b/man/man1/codereview.1 index 0b713c45..ec528b22 100644 --- a/man/man1/codereview.1 +++ b/man/man1/codereview.1 @@ -13,18 +13,12 @@ codereview \- review of submitted changes (experimental) ] .B create .I name -[ -.B -a -] .PP .B codereview [ .B -v ] .B commit -[ -.B -a -] .PP .B codereview [ @@ -60,6 +54,10 @@ and then commits them to a ``feature branch'' using .I codereview .IR create . +Once a feature branch is created, files can still be edited, but they must then be +incorporated into the change by using +.I codereview +.IR commit . .I Git requires that changes be added to a ``staging area'' before the initial commit, using commands such as @@ -69,16 +67,18 @@ and .I git .IR rm . The -.B -a -option causes .I codereview .I create -to add all local modifications to the staging area as part of the initial commit. -.PP -Once a feature branch is created, files can still be edited, but they must then be -incorporated into the change by using +and .I codereview -.IR commit . +.I commit +commands +automatically move all local modifications to the staging area +as part of the commit, +using +.I git +.I commit +.IR -a . .PP If other changes have been committed since the feature branch was created, .I codereview -- cgit v1.2.3