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

[PATCH] Add --bool and --int to the OPTIONS section

From
APAndy Parkins <andyparkins@gmail.com>
Date
Nov 29, 2006, 08:25 UTC
Message-ID
<200611290825.40953.andyparkins@gmail.com>
In-Reply-To
<7vd5772unw.fsf@assigned-by-dhcp.cox.net>
Signed-off-by: Andy Parkins <andyparkins@gmail.com>
---
I did look for just such an option, but didn't find it because it wasn't in 
the OPTIONS list of the git-repo-config man page.  If there is an OPTIONS 
section it should include all options, otherwise it's no use as a quick 
reference.

Your template commit message is an excellent idea, but I don't like the idea of simply hard coding sign off line into it; it means that there are then two locations in the .git tree that I'd have to edit to change my name. Therefore any template would have to support token expansion so that "S-o-B: $REPOSITORY_EMAIL" would be possible. Even better would be support for "$GIT_STATUS_OUTPUT" and "$GIT_DIFF_OUTPUT" so that the commit message is completely templated.

 Documentation/git-repo-config.txt |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-repo-config.txt 
b/Documentation/git-repo-config.txt
index 8199615..5bede9a 100644
--- a/Documentation/git-repo-config.txt
+++ b/Documentation/git-repo-config.txt
@@ -77,6 +77,12 @@ OPTIONS
 -l, --list::
 	List all variables set in config file.
 
+--bool::
+	git-repo-config will ensure that the output is "true" or "false"
+
+--int::
+	git-repo-config will ensure that the output is a simple decimal number
+
 
 ENVIRONMENT
 -----------
-- 
1.4.3.GIT-dirty
Previous: Junio C HamanoNext: Johannes Schindelin
Message 3 of 4 in “Add support for commit.signoff config option”
  1. Add support for commit.signoff config optionAndy Parkins, Nov 28, 2006
  2. Junio C HamanoNov 28, 2006
  3. Add --bool and --int to the OPTIONS sectionAndy Parkins, Nov 29, 2006
  4. Johannes SchindelinNov 29, 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.