git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] git cat-file "literally" option
@ 2015-02-18  9:39 karthik nayak
  2015-02-18 12:50 ` karthik nayak
  0 siblings, 1 reply; 5+ messages in thread
From: karthik nayak @ 2015-02-18  9:39 UTC (permalink / raw)
  To: Git List, Junio C Hamano

Hey,
After reading http://thread.gmane.org/gmane.comp.version-control.git/256878
I have started working on the git cat file --literally option.

I'm wondering if I should implement it as an add on to the existing options,
wherein we could say "git cat-file (t | -s | -e | -p | <type> | 
--texconv) --literally <object>"
so that it would be able to print the required data literally or should 
I implement it such that
we could say "git cat-file (-t | -s | -e | -p | <type> | --texconv | 
--literally) <object>"
so it would just give all information about the given object. (Maybe 
like the -p option?)

For example :
if  I create a bogus object like

git hash-object -t bogus --literally -w --stdin </dev/null

Should I implement
git cat-file -t --literally 49993fe130c4b3bf24857a15d7969c396b7bc187
or should I implement
git cat-file --literally 49993fe130c4b3bf24857a15d7969c396b7bc187
To get information pertaining to the object "bogus:.


What do you people think?
Thanks
-Karthik

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-02-19 10:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-18  9:39 [RFC] git cat-file "literally" option karthik nayak
2015-02-18 12:50 ` karthik nayak
2015-02-18 13:58   ` Duy Nguyen
2015-02-18 15:47     ` Junio C Hamano
2015-02-19 10:10       ` karthik nayak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).