2009/9/25 Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>: > > > On Thu, 24 Sep 2009, Li Hong wrote: >> >> When using 'git cat-file' recently, I find its option interface is somewhat >> inconvenient or mistakenly-designed. > > You likely shouldn't use 'cat-file' at all. Have you looked at 'git show'? > That's the command meant for human beings. > > 'git cat-file' is really really low-level plumbing. Humans should > generally never use it. It's one of the original git commands (it was > literally in the original git commit), and it does some really low-level > stuff that is good for scripting but not for any normal use. > > Linus > Yes, I know 'git show' and use it mostly. I just think the interface of 'cat-file' is not well designed even used by other scripts or porcelains. But from another respect, it doesn't really annoy normal users much and we should retain backwards compatibility. So I give up. Thanks for all your feedbacks. -Li Hong -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html