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

Re: [PATCH] Add bare repository indicator for __git_ps1

From
Ted Pavlic <ted@tedpavlic.com>
Date
Feb 24, 2009, 14:25 UTC
Message-ID
<49A40372.2060600@tedpavlic.com>
In-Reply-To
<7vab8cpqgl.fsf@gitster.siamese.dyndns.org>
Show 5 quoted lines
> Reverting GIT_DIR! ugliness is certainly a possibility.  As long as people
> who chdir into there are the only ones who suffer from the ugliness I do
> not particularly care that much, though ;-)
>
> Will apply anyway.

I only added the "GIT_DIR!" on the advice of Junio, who suggested a "danger" flag. I asked for suggestions on replacement text.

Keep in mind that "BARE:master" doesn't make much sense. If you're in a git dir, you don't have a working directory. "BARE" alone makes sense. Personally, I think it makes more sense to submit a patch that changes "GIT_DIR!" to "BARE" in the bare case (and doesn't print any branch).

--Ted
-- 
Ted Pavlic <ted@tedpavlic.com>

   Please visit my ALS association page:
         http://web.alsa.org/goto/tedpavlic
   My family appreciates your support in the fight to defeat ALS.
Previous: Junio C HamanoNext: Marius Storm-Olsen
Message 12 of 18 in “Add bare repository indicator for __git_ps1”
  1. Add bare repository indicator for __git_ps1Marius Storm-Olsen, Feb 21, 2009
  2. Marius Storm-OlsenFeb 21, 2009
  3. Junio C HamanoFeb 21, 2009
  4. Marius Storm-OlsenFeb 21, 2009
  5. Junio C HamanoFeb 22, 2009
  6. Marius Storm-OlsenFeb 23, 2009
  7. Shawn O. PearceFeb 23, 2009
  8. Marius Storm-OlsenFeb 23, 2009
  9. Shawn O. PearceFeb 23, 2009
  10. Marius Storm-OlsenFeb 23, 2009
  11. Junio C HamanoFeb 24, 2009
  12. Ted PavlicFeb 24, 2009
  13. Marius Storm-OlsenFeb 24, 2009
  14. Ted PavlicFeb 24, 2009
  15. Junio C HamanoFeb 24, 2009
  16. Marius Storm-OlsenFeb 24, 2009
  17. Junio C HamanoFeb 25, 2009
  18. Marius Storm-OlsenFeb 25, 2009

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.