From: Shawn O. Pearce Date: Mon, 16 Mar 2009 15:18:23 GMT Subject: Re: adding files in .git? Message-ID: <20090316151823.GP22920@spearce.org> In-Reply-To: <3a69fa7c0903160814u42fbb461qf03a37176546357d@mail.gmail.com> E R 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.