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

Re: [PATCH] Add bare repository indicator for __git_ps1

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 21, 2009, 19:29 UTC
Message-ID
<7v8wnzr3k9.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1235227723-11471-1-git-send-email-git@storm-olsen.com>
Marius Storm-Olsen <git@storm-olsen.com> writes:
> Prefixes the branch name with "BARE:" if you're in a
> bare repository.

The updated code may correctly detect when you are in such a situation, but I have to wonder why anybody would even want to be reminded that he is in a bare repository to begin with.

For doing any usual work of growing history, you would work inside a repository with an work tree. The only occasion you would *go* to a bare repository would be to tweak, futz with and fix one that is used as a distribution point, isn't it? You usually update such a repository by pushing into it, so your being there would be a result of very conscious act of chdir'ing into it yourself, and you wouldn't be spending too much time in there anyway.

There may be a different workflow where you would stay in a bare repository for an extended period of time and you would benefit from such a reminder like this patch adds, but I do not think of one.

Care to enlighten?
Previous: Marius Storm-OlsenNext: Marius Storm-Olsen
Message 3 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.