Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save simple/168639 to your computer and use it in GitHub Desktop.
Save simple/168639 to your computer and use it in GitHub Desktop.
From 1d94e295d4514f2a509d3b608b515e08e04d4577 Mon Sep 17 00:00:00 2001
From: Leo Ju <mr.simple@gmail.com>
Date: Sun, 16 Aug 2009 21:00:21 +0900
Subject: [PATCH] Added format string %r to show subversion revision
---
src/vcprompt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/vcprompt.c b/src/vcprompt.c
index c55041c..bc81b89 100644
--- a/src/vcprompt.c
+++ b/src/vcprompt.c
@@ -150,7 +150,7 @@ vccontext_t* probe_parents(vccontext_t** contexts, int num_contexts)
int main(int argc, char** argv)
{
options_t options = { 0, /* debug */
- "[%n:%b%m%u] ", /* format string */
+ "[%n:%b%m%r%u] ", /* format string */
0, /* show branch */
0, /* show unknown */
0, /* show local changes */
--
1.6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment