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

cg-commit -p -m ignores -p

From
Gerrit Pape <pape@smarden.org>
Date
Sep 15, 2006, 13:23 UTC
Message-ID
<20060915132319.12117.qmail@7d60384c102e6d.315fe32.mid.smarden.org>

Hi, please see http:/bugs.debian.org/387515 or below. I agree that ideally cg-commit should behave differently.

Thanks, Gerrit.
----- Forwarded message from Andrew Suffield <asuffield@suffields.me.uk> -----

cg-commit -p -m ignores the -p argument and silently commits. Yes, this is documented, but it's still stupid behaviour; if the user had meant that, they would have just used -m alone.

At the very least, it should abort with an error (on the basis that the command makes no sense); more sensibly, it should create a log message with the given string and then spawn an editor (and then since the user will probably exit without changing the file, the "Abort or commit?" message would appear as per usual, which seems to me to be appropriate behaviour).

----- End forwarded message -----
Next: Petr Baudis
Message 1 of 2 in “cg-commit -p -m ignores -p”
  1. Gerrit PapeSep 15, 2006
  2. Petr BaudisSep 24, 2006

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.