Storing notes refs outside of refs/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Every push to our server creates a note at .git/refs/notes/p4notes with the equivalent Perforce changelist number, so Git-controlled code and Perforce-controlled content can stay in sync.

gitk --all and Git Extensions (out of box) show all entries in the .git/refs/. The p4notes entries are intermixed with the regular branch content. This creates a HORRID visual mess.

I tried manually moving .git/refs/notes/p4notes to .git/p4/p4notes.

"git log --show-notes=p4/p4notes" fails, but assigning core.notesDisplayRef=p4/p4notes succeeds.

The best part is, the refs/* namespace is no longer cluttered with junk!

However, "git push origin p4/p4notes:p4/p4notes" fails with the error: Unable to push to unqualified destination: p4/p4notes. The destination refspec neither matches an existing ref on the remote nor begins with refs/, and we are unable to guess a prefix based on the source ref.

Is there a way to make the "git push" work?

Thanks!

Josh
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]