{"thread":{"id":"25877","subject":"[PATCH v2] bash: Match lightweight tags in prompt","startedAt":"2010-12-01T13:17:00Z","lastAt":"2010-12-01T19:53:58Z","messageCount":2,"participants":["knittl","Junio C Hamano"],"isPatch":true,"patchVersion":2,"patchTotal":null},"messages":[{"id":"156921","messageId":"AANLkTinvAnGh6PU2bRrx_uGU81zjVHcFmZWwqpKpjO=1@mail.gmail.com","threadId":"25877","inReplyTo":null,"subject":"[PATCH v2] bash: Match lightweight tags in prompt","fromName":"knittl","fromEmail":"knittl89@googlemail.com","sentAt":"2010-12-01T13:17:00Z","receivedAt":"2010-12-01T13:17:00Z","isPatch":true,"sender":{"key":"knittl89@googlemail.com","avatar":"https://avatars.githubusercontent.com/u/2149217?v=4"},"body":">From 6be63c5bc1a411a13a012a6508a7301bed7faec6 Mon Sep 17 00:00:00 2001\nFrom: Daniel Knittl-Frank <knittl89+git@googlemail.com>\nDate: Fri, 19 Nov 2010 16:40:02 +0100\nSubject: [PATCH] bash: Match lightweight tags in prompt\n\nthe bash prompt would display a commit's SHA1 when having checked out a\nlightweight tag.  provide `--tags` to `git describe` in the completion\nscript, so it will display lightweight tag names (as it already does for\nannotated tags)\n\nSigned-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>\n---\nversion two of my patch, adding the missing s-o-b and extending commit message\n\nthe diff is still the same as v1\n\n contrib/completion/git-completion.bash |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/contrib/completion/git-completion.bash\nb/contrib/completion/git-completion.bash\nindex f710469..604fa79 100755\n--- a/contrib/completion/git-completion.bash\n+++ b/contrib/completion/git-completion.bash\n@@ -261,7 +261,7 @@ __git_ps1 ()\n \t\t\t\t(describe)\n \t\t\t\t\tgit describe HEAD ;;\n \t\t\t\t(* | default)\n-\t\t\t\t\tgit describe --exact-match HEAD ;;\n+\t\t\t\t\tgit describe --tags --exact-match HEAD ;;\n \t\t\t\tesac 2>/dev/null)\" ||\n\n \t\t\t\tb=\"$(cut -c1-7 \"$g/HEAD\" 2>/dev/null)...\" ||\n-- \n1.7.3.2.334.gd1031\n\n\n\n-- \ntyped with http://neo-layout.org\nmyFtPhp -- visit http://myftphp.sf.net -- v. 0.4.7 released!\n"},{"id":"157000","messageId":"7vr5e1uv55.fsf@alter.siamese.dyndns.org","threadId":"25877","inReplyTo":"AANLkTinvAnGh6PU2bRrx_uGU81zjVHcFmZWwqpKpjO=1@mail.gmail.com","subject":"Re: [PATCH v2] bash: Match lightweight tags in prompt","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2010-12-01T19:53:58Z","receivedAt":"2010-12-01T19:53:58Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"knittl <knittl89@googlemail.com> writes:\n\n> From 6be63c5bc1a411a13a012a6508a7301bed7faec6 Mon Sep 17 00:00:00 2001\n> From: Daniel Knittl-Frank <knittl89+git@googlemail.com>\n> Date: Fri, 19 Nov 2010 16:40:02 +0100\n> Subject: [PATCH] bash: Match lightweight tags in prompt\n\nPlease drop these lines next time, so that I do not have to remove them in\nmy editor before applying.\n\n> the bash prompt would display a commit's SHA1 when having checked out a\n> lightweight tag.  provide `--tags` to `git describe` in the completion\n> script, so it will display lightweight tag names (as it already does for\n> annotated tags)\n\nHmph.  Is your Shift-key broken (probably not, as you spelled SHA in\ncapital)?\n\n> Signed-off-by: Daniel Knittl-Frank <knittl89+git@googlemail.com>\n> ---\n> version two of my patch, adding the missing s-o-b and extending commit message\n>\n> the diff is still the same as v1\n\nThanks; will apply (no need for resend).\n"}]}