From 5edb9c8d31a1ae452558a1b1c7d7eb2a269bb40e Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 6 Sep 2011 20:45:18 +0200 Subject: //Reaktr/command/rev: initial commit --- Reaktor/commands/rev | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 Reaktor/commands/rev (limited to 'Reaktor/commands/rev') diff --git a/Reaktor/commands/rev b/Reaktor/commands/rev new file mode 100755 index 00000000..9964fe3f --- /dev/null +++ b/Reaktor/commands/rev @@ -0,0 +1,2 @@ +#! /bin/sh +git rev-parse --short HEAD -- cgit v1.2.3 From 2625c851b728b45b41717827acc007a274572ed7 Mon Sep 17 00:00:00 2001 From: EUcancER Date: Thu, 8 Sep 2011 00:09:46 +0200 Subject: reaktor/commands: rev shows age,author this should nullify the race condition with git rev-parse HEAD by using the correct command instead -> git log -1" --- Reaktor/commands/rev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Reaktor/commands/rev') diff --git a/Reaktor/commands/rev b/Reaktor/commands/rev index 9964fe3f..a8681ab9 100755 --- a/Reaktor/commands/rev +++ b/Reaktor/commands/rev @@ -1,2 +1,2 @@ #! /bin/sh -git rev-parse --short HEAD +git log -1 --format="%h by %an, %ar" -- cgit v1.2.3