What is Nostr?
Julia Evans /
npub1ym9…lm9y
2024-04-10 17:35:05

Julia Evans on Nostr: if I have a commit ID in git, does anyone know if there's a single git command that ...

if I have a commit ID in git, does anyone know if there's a single git command that will tell me which tag(s)/branch(es)/remote-tracking branch(es) that commit corresponds to?

it's not:
- git describe
- git branch --contains

the only thing I can find is `git show --no-patch --format='%d' COMMIT_ID` but that's kind of a mouthful, and also it's formatted in kind of a weird way
Author Public Key
npub1ym9ddu2qh7rda8pxklq4gxw2kxhtm4cgvdvdy64z6agwy88nhuhqcnlm9y