git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/4] switch cg-commit -N to use --missing-ok instead of --no-check

From
Bryan Larsen <bryanlarsen@yahoo.com>
Date
Jul 11, 2005, 03:53 UTC
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 <bryan.larsen@gmail.com>
---
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
Previous: Bryan Larsen
Message 5 of 5 in “add write-tree --missing OK, fix cogito -N options”
  1. 0/4 add write-tree --missing OK, fix cogito -N optionsBryan Larsen, Jul 11, 2005
  2. 1/4 bugfix for cg-init: ARGVBryan Larsen, Jul 11, 2005
  3. 2/4 bugfix for cg-init -N: pass -N to cg-commitBryan Larsen, Jul 11, 2005
  4. 3/4 add --missing-ok option to write-treeBryan Larsen, Jul 11, 2005
  5. 4/4 switch cg-commit -N to use --missing-ok instead of --no-checkBryan Larsen, Jul 11, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.