From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <junkio@cox.net>
Subject: Re: [PATCH] Hash name is SHA-1
Date: Fri, 26 Jan 2007 11:54:19 +0000 [thread overview]
Message-ID: <200701261154.20723.andyparkins@gmail.com> (raw)
In-Reply-To: <7vr6ti659k.fsf@assigned-by-dhcp.cox.net>
On Thursday 2007 January 25 23:44, Junio C Hamano wrote:
> I do agree the original patch conflates many different things,
> and it would be nicer to do this clean-up as separate pieces.
FYI:
As you know I've got some patches that fix use of literal numbers for the hash
sizes instead of SOME_CONSTANT. I've further got one that does the same for
the literal uses of "refs/" et al. I'm holding off on these until after 1.5
so as to minimise big changes.
> * The official name of these 40-hexdigit thingy we use to name
> objects is "object name" (see Documentation/glossary.txt).
As a further to the above cleanups, I'm also planning to fix all the sha1
named variables to be "hash" or "object" or something. It strikes me that
this plan is related to this cleanup and might fix some of the issues like:
> + "git-read-tree (<sha> | "
> + "[[-m [--aggressive] | --reset | --prefix=<prefix>] "
> + "[-u | -i]] [--exclude-per-directory=<gitignore>] "
> + "<sha1> [<sha2> [<sha3>]])";
The reasons for wanting this are, I hope, obvious. The variables (and
parameters) accept object-names not SHA-1 hashes. The fact that the objects
are named after a SHA-1 isn't relevant to users; and shouldn't be relevant
for the variable names, simply to promote abstraction from what the actual
hash function is.
I mention it here because it seems to fit with this cleanup theme. Am I still
correct that you would want this sort of thing post-1.5? Is it even a
reasonable goal to have?
Andy
--
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com
next prev parent reply other threads:[~2007-01-26 11:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-25 12:50 Some cleanups Horst H. von Brand
2007-01-25 12:50 ` [PATCH] Hash name is SHA-1 Horst H. von Brand
2007-01-25 17:01 ` Shawn O. Pearce
2007-01-25 17:10 ` Nicolas Pitre
2007-01-25 18:56 ` Horst H. von Brand
2007-01-25 19:05 ` Shawn O. Pearce
2007-01-25 23:03 ` Matthias Lederhofer
2007-01-25 23:44 ` Junio C Hamano
2007-01-26 11:54 ` Andy Parkins [this message]
2007-01-26 23:46 ` Junio C Hamano
2007-01-26 11:34 ` Jakub Narebski
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=200701261154.20723.andyparkins@gmail.com \
--to=andyparkins@gmail.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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.