From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 04281138330 for ; Mon, 3 Oct 2016 13:32:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 37F13E0B1B; Mon, 3 Oct 2016 13:32:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F44AE0B1B for ; Mon, 3 Oct 2016 13:32:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CFAC7340E61 for ; Mon, 3 Oct 2016 13:32:15 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A2122248E for ; Mon, 3 Oct 2016 13:32:13 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1474493495.ce959f39c8dcb655b8455356f4b8f22888e73ba8.ulm@gentoo> Subject: [gentoo-commits] proj/pms:master commit in: / X-VCS-Repository: proj/pms X-VCS-Files: vc vc-git.awk X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: ce959f39c8dcb655b8455356f4b8f22888e73ba8 X-VCS-Branch: master Date: Mon, 3 Oct 2016 13:32:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 51ee7c61-3cd1-4cc2-a3ec-c409380d75cc X-Archives-Hash: 5cbd6c0bff8717cbcc8452f0f4c76202 commit: ce959f39c8dcb655b8455356f4b8f22888e73ba8 Author: Ulrich Müller gentoo org> AuthorDate: Wed Sep 21 21:31:35 2016 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Wed Sep 21 21:31:35 2016 +0000 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=ce959f39 vc: Sync from dev-tex/vc-0.5-r1. vc | 2 +- vc-git.awk | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vc b/vc index 5eb7f0f..4e13d71 100644 --- a/vc +++ b/vc @@ -20,5 +20,5 @@ LC_ALL=C git --no-pager log -1 HEAD --pretty=format:"Hash: %H%nAbr. Hash: %h%nParent Hashes: %P%nAbr. Parent Hashes: %p%nAuthor Name: %an%nAuthor Email: %ae%nAuthor Date: %ai%nCommitter Name: %cn%nCommitter Email: %ce%nCommitter Date: %ci%n" |gawk -v script=log -v full=$full -f vc-git.awk > vc.tex if [ "$mod" = 1 ] then - git status |gawk -v script=status -f vc-git.awk >> vc.tex + git status --porcelain |gawk -v script=status -f vc-git.awk >> vc.tex fi diff --git a/vc-git.awk b/vc-git.awk index d349a93..8b9b052 100644 --- a/vc-git.awk +++ b/vc-git.awk @@ -24,9 +24,9 @@ script=="log" && /^Committer Date:/ { CommitterDate = substr($0, 2+match($0, ":" ### Process output of "git status". ### Changed index? -script=="status" && /^# Changes to be committed:/ { modified = 1 } +script=="status" && /^[MADRC]/ { if (modified == 0) modified = 1 } ### Unstaged modifications? -script=="status" && /^# Changed but not updated:/ { modified = 2 } +script=="status" && /^.[MD]/ { modified = 2 }