From: Bryan Larsen Date: Mon, 11 Jul 2005 03:53:55 GMT Subject: [PATCH 4/4] switch cg-commit -N to use --missing-ok instead of --no-check Message-ID: <20050711035349.22229.2989.sendpatchset@bryan-larsens-ibook-g4.local> In-Reply-To: <20050711035305.22229.87752.sendpatchset@bryan-larsens-ibook-g4.local> Make cg-commit aware of the rename of git-write-tree --no-check to --missing-ok. Signed-off-by: Bryan Larsen --- diff --git a/cg-commit b/cg-commit --- a/cg-commit +++ b/cg-commit @@ -111,13 +111,13 @@ forceeditor= ignorecache= infoonly= commitalways= -nocheck= +missingok= msgs=() while optparse; do if optparse -C; then ignorecache=1 elif optparse -N; then - nocheck=--no-check + missingok=--missing-ok infoonly=--info-only elif optparse -e; then forceeditor=1 @@ -311,7 +311,7 @@ if [ -s "$_git/HEAD" ]; then oldheadstr="-p $oldhead" fi -treeid=$(git-write-tree ${nocheck}) +treeid=$(git-write-tree ${missingok}) [ "$treeid" ] || die "git-write-tree failed" if [ ! "$force" ] && [ ! "$merging" ] && [ "$oldhead" ] && [ "$treeid" = "$(tree-id)" ]; then