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

Re: [PATCH] Add bare repository indicator for __git_ps1

From
Marius Storm-Olsen <marius@trolltech.com>
Date
Feb 23, 2009, 07:52 UTC
Message-ID
<49A255BF.5040905@trolltech.com>
In-Reply-To
<7v63j22z92.fsf@gitster.siamese.dyndns.org>
Junio C Hamano said the following on 22.02.2009 17:49:
Show 25 quoted lines
> Marius Storm-Olsen <marius@trolltech.com> writes:
>>> 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?
>> Right, I have quite a few repos on my machine which are just
>> bare, as I use them gather branches and push out again.
>> (http://repo.or.cz/w/git/platforms.git is one of them) However, 
>> it's probably just me, since I could just as easily put them in a
>> proper directory structure to indicate their bareness.
> 
> Ah, so "gather branches and push out again" would look something
> like this?
> 
>     $ cd /pub/some/where/platforms.git
>     $ git fetch platform1 ;# perhaps with master:one/master mapping
>     $ git fetch platform2 ;# perhaps with master:two/master
>     $ git push public
> 
> Then it is very understandable that you would spend time inside a
> bare repository.  I do not understand the need for GIT_DIR! thing
> even less, but since we have that there already, I do not see a
> reason not to add this to the queue.
Indeed that's somewhat how I work.
Also, given the new GIT_DIR! "feature", I cannot simply keep my 
"BARE:" in my own .bash_rc anymore, since then I'd just get
     (BARE:GIT_DIR!)
which is less than useful. So, given that the overhead and impact to 
the current logic is minimal, I would appreciate the patch being queued.
Thanks!
-- 
.marius [@trolltech.com]
'if you know what you're doing, it's not research'
Previous: Junio C HamanoNext: Shawn O. Pearce
Message 6 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.