* adding files in .git?
@ 2009-03-16 15:14 E R
2009-03-16 15:18 ` Shawn O. Pearce
2009-03-16 16:56 ` Matthieu Moy
0 siblings, 2 replies; 3+ messages in thread
From: E R @ 2009-03-16 15:14 UTC (permalink / raw)
To: git
I'd like to add a "short description" attribute to my .git repository.
This would be used by my bash prompt setting function in creating the
PS1 string. How would you recommend that this be implemented?
My ideas are:
1) Use another file in .git similar to the "description" file (such as
.git/short-description)
2) Use a setting in the .git/config file.
Any comments on the advantages/disadvantages of these approaches? Or
is there yet another better way?
Thanks,
ER
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: adding files in .git?
2009-03-16 15:14 adding files in .git? E R
@ 2009-03-16 15:18 ` Shawn O. Pearce
2009-03-16 16:56 ` Matthieu Moy
1 sibling, 0 replies; 3+ messages in thread
From: Shawn O. Pearce @ 2009-03-16 15:18 UTC (permalink / raw)
To: E R; +Cc: git
E R <pc88mxer@gmail.com> wrote:
> I'd like to add a "short description" attribute to my .git repository.
> This would be used by my bash prompt setting function in creating the
> PS1 string. How would you recommend that this be implemented?
>
> My ideas are:
>
> 1) Use another file in .git similar to the "description" file (such as
> .git/short-description)
> 2) Use a setting in the .git/config file.
>
> Any comments on the advantages/disadvantages of these approaches? Or
> is there yet another better way?
Using another file may be faster to execute as you can probably
read the file directly in shell, vs. needing to fork to read the
file with `git config`.
But there really isn't a huge argument either way other than that.
--
Shawn.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: adding files in .git?
2009-03-16 15:14 adding files in .git? E R
2009-03-16 15:18 ` Shawn O. Pearce
@ 2009-03-16 16:56 ` Matthieu Moy
1 sibling, 0 replies; 3+ messages in thread
From: Matthieu Moy @ 2009-03-16 16:56 UTC (permalink / raw)
To: E R; +Cc: git
E R <pc88mxer@gmail.com> writes:
> 1) Use another file in .git similar to the "description" file (such as
> .git/short-description)
> 2) Use a setting in the .git/config file.
>
> Any comments on the advantages/disadvantages of these approaches?
Neither of them will propagate through clone. Depending on your
use-case, this is an advantage or not.
--
Matthieu
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-03-16 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-16 15:14 adding files in .git? E R
2009-03-16 15:18 ` Shawn O. Pearce
2009-03-16 16:56 ` Matthieu Moy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox