From: Johan Herland <johan@herland.net>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Geoffrey Irving <irving@naml.us>
Subject: Re: [PATCH] cherry: cache patch-ids to avoid repeating work
Date: Wed, 16 Jul 2008 09:22:30 +0200 [thread overview]
Message-ID: <200807160922.30275.johan@herland.net> (raw)
In-Reply-To: <7vod4yztf5.fsf@gitster.siamese.dyndns.org>
On Wednesday 16 July 2008, Junio C Hamano wrote:
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> > Okay, it seems like I never have time to review this, so I'll just
> >
> > take a few minutes to comment on some aspects:
> >> @@ -1094,6 +1104,8 @@ int cmd_cherry(int argc, const char **argv,
> >> const char *prefix)
> >> const char *limit = NULL;
> >> int verbose = 0;
> >>
> >> + git_config(git_cherry_config, NULL);
> >> +
> >> if (argc > 1 && !strcmp(argv[1], "-v")) {
> >> verbose = 1;
> >> argc--;
> >
> > Is this really purely for cherry, and not at all for "log
> > --cherry-pick"? Maybe it should be "cache.patchIds" to begin with.
>
> What other things would we want caches for?
This should be fairly obvious:
- git-notes (uses sha1-to-sha1 cache for storing commit-to-note
relationship)
- integrated bug trackers (uses sha1-to-sha1 cache for storing
commit-to-bugreport (or similar) relationships)
- ...any other mechanism that want to quickly map from a git object to some
associated data
There are probably plenty more ideas and use cases if people start looking.
AFAICS, each different use case would keep its cache in a separate file.
For local-repo-only caches the cache is kept within $GIT_DIR, and for shared
caches (IF that makes sense in any of the use cases) the cache could be
located in the working tree (either as a .git_foo file on relevant
branches, or as a file on a separate domain-specific branch).
Have fun! :)
...Johan
--
Johan Herland, <johan@herland.net>
www.herland.net
prev parent reply other threads:[~2008-07-16 7:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-09 3:53 [PATCH 1/3] cherry: cache patch-ids to avoid repeating work Geoffrey Irving
2008-07-09 5:14 ` Junio C Hamano
2008-07-09 5:26 ` Geoffrey Irving
2008-07-09 6:24 ` Junio C Hamano
2008-07-09 12:18 ` Johannes Schindelin
2008-07-10 3:34 ` [PATCH] " Geoffrey Irving
2008-07-10 14:09 ` Geoffrey Irving
2008-07-10 14:28 ` Johannes Schindelin
2008-07-10 14:33 ` Geoffrey Irving
2008-07-10 15:56 ` Johannes Schindelin
2008-07-11 6:54 ` Junio C Hamano
2008-07-11 14:58 ` Geoffrey Irving
2008-07-11 15:36 ` Johannes Schindelin
2008-07-11 15:41 ` Geoffrey Irving
2008-07-11 15:48 ` Johannes Schindelin
[not found] ` <7vej60jln6.fsf@gitster.siamese.dyndns.org>
2008-07-13 3:14 ` Geoffrey Irving
2008-07-15 16:57 ` Geoffrey Irving
2008-07-15 21:52 ` Johannes Schindelin
2008-07-15 22:14 ` Junio C Hamano
2008-07-16 6:57 ` Karl Hasselström
2008-07-16 7:22 ` Johan Herland [this message]
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=200807160922.30275.johan@herland.net \
--to=johan@herland.net \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=irving@naml.us \
/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 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).