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

[StGIT PATCH 3/4] Replace "git repo-config" with "git config" in help texts

From
Karl Hasselström <kha@treskal.com>
Date
Aug 26, 2007, 20:26 UTC
Message-ID
<20070826202626.15933.27528.stgit@yoghurt>
In-Reply-To
<20070826202309.15933.54183.stgit@yoghurt>

It makes sense to still use git-repo-config instead of git-config in the code, since the latter name is not available in older gits, but it's better to use the new name in the help texts since the overwhelming majority of users aren't going to use a very old git.

Signed-off-by: Karl Hasselström <kha@treskal.com>
---
 examples/gitconfig |    2 +-
 stgit/stack.py     |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/examples/gitconfig b/examples/gitconfig
index e402208..f1c653e 100644
--- a/examples/gitconfig
+++ b/examples/gitconfig
@@ -1,6 +1,6 @@
 # StGIT configuration file. Copy it to any of ~/.gitconfig or
 # .git/config and modify as needed. Note that the latter overrides
-# the former. The "git repo-config" command can be used as well
+# the former. The "git config" command can be used as well
 
 [user]
 	# Default author/committer details (standard GIT variables)
diff --git a/stgit/stack.py b/stgit/stack.py
index 0ce9992..1ab10c5 100644
--- a/stgit/stack.py
+++ b/stgit/stack.py
@@ -515,7 +515,7 @@ class Series(PatchSet):
             out.note(('No parent remote declared for stack "%s",'
                       ' defaulting to "origin".' % self.get_name()),
                      ('Consider setting "branch.%s.remote" and'
-                      ' "branch.%s.merge" with "git repo-config".'
+                      ' "branch.%s.merge" with "git config".'
                       % (self.get_name(), self.get_name())))
             return 'origin'
         else:
@@ -532,7 +532,7 @@ class Series(PatchSet):
             out.note(('No parent branch declared for stack "%s",'
                       ' defaulting to "heads/origin".' % self.get_name()),
                      ('Consider setting "branch.%s.stgit.parentbranch"'
-                      ' with "git repo-config".' % self.get_name()))
+                      ' with "git config".' % self.get_name()))
             return 'heads/origin'
         else:
             raise StackException, 'Cannot find a parent branch for "%s"' % self.get_name()
Previous: Karl HasselströmNext: Karl Hasselström
Message 4 of 8 in “Miscellaneous fixes”
  1. 0/4 Miscellaneous fixesKarl Hasselström, Aug 26, 2007
  2. 1/4 Don't use test_expect_failure when more than one thing could failKarl Hasselström, Aug 26, 2007
  3. 2/4 Don't write None to the conf fileKarl Hasselström, Aug 26, 2007
  4. 3/4 Replace "git repo-config" with "git config" in help textsKarl Hasselström, Aug 26, 2007
  5. 4/4 Compile regexp just onceKarl Hasselström, Aug 26, 2007
  6. Catalin MarinasAug 29, 2007
  7. Karl HasselströmAug 29, 2007
  8. Catalin MarinasSep 3, 2007

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.