From: karthik nayak <karthik.188@gmail.com>
To: Git List <git@vger.kernel.org>, Junio C Hamano <gitster@pobox.com>
Subject: Re: [RFC] git cat-file "literally" option
Date: Wed, 18 Feb 2015 18:20:30 +0530 [thread overview]
Message-ID: <54E48A96.8010301@gmail.com> (raw)
In-Reply-To: <54E45DD7.205@gmail.com>
On 02/18/2015 03:09 PM, karthik nayak wrote:
> 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
Also,
Is there any way I can get the type of object made via git hash-object
--literally. The problem I'm facing is "sha1_object_info()" returns a
object_type enum, so objects not specified there are considered as errors.
next prev parent reply other threads:[~2015-02-18 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-18 9:39 [RFC] git cat-file "literally" option karthik nayak
2015-02-18 12:50 ` karthik nayak [this message]
2015-02-18 13:58 ` Duy Nguyen
2015-02-18 15:47 ` Junio C Hamano
2015-02-19 10:10 ` karthik nayak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54E48A96.8010301@gmail.com \
--to=karthik.188@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.