[Libvirt-cim] [PATCH] autoconfiscate.sh: Use proper command for revision count

Chip Vincent cvincent at linux.vnet.ibm.com
Tue Jan 17 17:06:41 UTC 2012


I like this better than the current hack, but the syntax does not seems correct. 
On RHEL 6.2:

$ git rev-list --count HEAD
usage: git rev-list [OPTION] <commit-id>... [ -- paths... ]
   limiting output:
     --max-count=nr
     --max-age=epoch
     --min-age=epoch
     --sparse
     --no-merges
     --remove-empty
     --all
     --branches
     --tags
     --remotes
     --stdin
     --quiet
   ordering output:
     --topo-order
     --date-order
     --reverse
   formatting output:
     --parents
     --children
     --objects | --objects-edge
     --unpacked
     --header | --pretty
     --abbrev=nr | --no-abbrev
     --abbrev-commit
     --left-right
   special purpose:
     --bisect
     --bisect-vars
     --bisect-all


On 01/17/2012 11:58 AM, Eduardo Lima (Etrunko) wrote:
> From: "Eduardo Lima (Etrunko)"<eblima at br.ibm.com>
>
> Signed-off-by: Eduardo Lima (Etrunko)<eblima at br.ibm.com>
> ---
>   autoconfiscate.sh |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/autoconfiscate.sh b/autoconfiscate.sh
> index 8ea8a30..f0ef048 100755
> --- a/autoconfiscate.sh
> +++ b/autoconfiscate.sh
> @@ -19,7 +19,7 @@ autoconf --force&&
>
>   if test -x $(which git); then
>       git rev-parse --short HEAD>  .changeset
> -    git log | grep "^commit" | wc -l>  .revision
> +    git rev-list --count HEAD>  .revision
>   else
>       echo "Unknown">  .changeset
>       echo "0">  .revision


-- 
Chip Vincent
Open Virtualization
IBM Linux Technology Center
cvincent at linux.vnet.ibm.com




More information about the Libvirt-cim mailing list