Re: svn versus git
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 15, 2006, 00:19 UTC
- Message-ID
- <Pine.LNX.4.63.0612150118190.3635@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <fcaeb9bf0612140910t6aff44e1m9570b20850a41b87@mail.gmail.com>
Hi,
On Fri, 15 Dec 2006, Nguyen Thai Ngoc Duy wrote:
Show 17 quoted lines
> On 12/14/06, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > > > > - have you seen the patch for git-show today, which would include this > > > > functionality? > > > > > > I didn't. From the patch, it seems git-show can show the index via > > > ::file syntax. If so, I'd like withdraw my opinion. '::file' syntax is > > > not intuitive though. Perhaps you should mention that it can show > > > index (and how) in the git-show document > > > > Well, you can reference blobs that way, but not trees. > > Oh, yeah. Isn't this a good oppotunity to add --index option to git-show? > git-show --index will show the index. git-show --index file will show > the file content. This makes git-show a little unconsistent though as > it may or may not require argument <object>. > > Another option is treat '::' alone specially -- call git-ls-files.
Hmm. I don't know... It would make the code rather messy. And are you really interested in the content stored in the index? In all cases I can think of, you are better off with a diff vs. working directory or ref.
Ciao, Dscho