Re: diff against a tag ?
From: Dave Jones <hidden>
Date: 2016-06-15 22:41:55
On Thu, Apr 28, 2005 at 03:22:21PM -0700, Linus Torvalds wrote: > > Hmm, in a fresh rsync from your kernel tree, I get this.. > > tagged commit a2755a80f40e5794ddc20e00f781af9d6320fafb (v2.6.12-rc3) in 0397236d43e48e821cce5bbe6a80a1a56bb7cc3a > > tagged commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (v2.6.12-rc2) in 9e734775f7c22d2f89943ad6c745571f1930105f > > expect dangling commits - potential heads - due to lack of head information > > dangling tag 0397236d43e48e821cce5bbe6a80a1a56bb7cc3a > > dangling commit 9acf6597c533f3d5c991f730c6a1be296679018e > > dangling tag 9e734775f7c22d2f89943ad6c745571f1930105f > > > > Is that last part to be expected ? > It even says so: "expect dangling commits". heh, I was hex-blinded. > The tags will always be dangling, since nothing refers to them. Once you > have them listed in your tag database (ie you've created files that > mention them in .git/refs/tags or something), you can tell fsck about > them, and fsck won't complain. > > Something like > > fsck-cache --unreachable $(cat .git/refs/*/*) > > would do it (and depending on exactly how cogito ends up recording them). great. Dave