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
Published at
2024-04-10 17:35:05Event JSON
{
"id": "948b5eea0e93a0e483a1a65117e24a79196ba2e708b5bfde890d671587f619e5",
"pubkey": "26cad6f140bf86de9c26b7c15419cab1aebdd7086358d26aa2d750e21cf3bf2e",
"created_at": 1712770505,
"kind": 1,
"tags": [
[
"proxy",
"https://social.jvns.ca/users/b0rk/statuses/112248127829142033",
"activitypub"
]
],
"content": "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?\n\nit's not:\n- git describe\n- git branch --contains\n\nthe 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",
"sig": "1f5c7102aecaaabb3b582c55dfe5cbf309f64983211515b25f240a02f8bfa230f672d9842f6d05d5d22f871720d9cdec8d05d95757e2efb36156dabff34f637e"
}