Re: Creating own hierarchies under $GITDIR/refs ?
- From
Jed Brown <jed@59a2.org>
- Date
- Feb 2, 2014, 23:44 UTC
- Message-ID
- <878utt84g7.fsf@jedbrown.org>
- In-Reply-To
- <20140202122432.GC29976@serenity.lan>
John Keeping <john@keeping.me.uk> writes:
Show 8 quoted lines
> I actually wonder if you could do this with notes and git-grep; for > example: > > git grep -l keeping.me.uk refs/notes/amlog | > sed -e 's/.*://' -e 's!/!!g' > > That should be relatively efficient since you're only looking at the > current notes tree.
I added notes handling to gitifyhg and would search it similar to this. Since gitifyhg is two-way, I could not modify the commits. Later, when we converted several repositories (up to 50k commits/80 MB), I appended
Hg-commit: $Hg_commit_hash
to all the commit messages. This way it shows up on the web interface, users don't have to obtain the notes specially, and "git log --grep" works naturally. I think it's worth considering this simple solution; existing Git users won't mind recloning once.