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

2 questions/nits about commit and config

From
MFMichael Fischer <michael@visv.net>
Date
Feb 4, 2006, 21:23 UTC
Message-ID
<20060204212337.GA8612@blinkenlights.visv.net>
Hi.
Well, I went ahead and put my current project under git. So far so good.
Two nits: (yeah, I'm a "recovering" CVS user)
1) git commit -m"this is a commit message"  doesn't work. 
   It has to have a space between -m and the first '"'. 
   I *think* this is due to git-commit.sh and how it parses
   the args, but I'm not quite sure of how to try to patch
   that without mucking up the whole works. Very odd
   and hard to figure out what was "wrong" for a CVS user.
2) I can descend into subdirectories in my project, and 
   git diff, git status both work fine, but git commit
   gets annoyed and says "fatal: Not a git repository: '.git'".
   Irksome to say the least, and not a little suprising.
   Is that something which can be fixed, or is there a 
   magic incantation (perhaps in .git/config) to make
   git commit work anywhere in the source tree?

Incidentally, I groped around my git mailbox, and google, looking for some definitive list/examples of what can go in the .git/config file. Seems there must be more than what is listed in the manpage...

Thanks for all the cool work.
Michael
-- 
Michael Fischer                         Happiness is a config option.
michael@visv.net                        Recompile and be happy. 
Next: Junio C Hamano
Message 1 of 8 in “2 questions/nits about commit and config”
  1. Michael FischerFeb 4, 2006
  2. Junio C HamanoFeb 4, 2006
  3. Junio C HamanoFeb 4, 2006
  4. Alan ChandlerFeb 4, 2006
  5. Keith PackardFeb 4, 2006
  6. Junio C HamanoFeb 5, 2006
  7. Junio C HamanoFeb 5, 2006
  8. Daniel BarkalowFeb 5, 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.