From: Bert Wesarg <bert.wesarg@googlemail.com>
To: Petr Baudis <pasky@suse.cz>
Cc: Bert Wesarg <bert.wesarg@googlemail.com>, git@vger.kernel.org
Subject: [TopGit PATCH] tg-info: pretty print dependencies
Date: Tue, 5 Aug 2008 13:19:07 +0200 [thread overview]
Message-ID: <1217935147-25927-1-git-send-email-bert.wesarg@googlemail.com> (raw)
Print one dependency per line in tg-info output.
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
---
tg-info.sh | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tg-info.sh b/tg-info.sh
index ce99809..9e09039 100644
--- a/tg-info.sh
+++ b/tg-info.sh
@@ -38,8 +38,13 @@ echo "Base: $base_rev"
branch_contains "$name" "$base_rev" ||
echo "Base is newer than head! Please run \`tg update\`."
-deps="$(git cat-file blob "$name:.topdeps")"
-echo "Depends: $deps"
+prefix="Depends:"
+prefixlen=${#prefix}
+git cat-file blob "$name:.topdeps" 2>/dev/null |
+ while read _dep; do
+ printf "%-*s %s\n" $prefixlen "$prefix" "$_dep"
+ prefix=""
+ done
depcheck="$(mktemp)"
needs_update "$name" >"$depcheck"
--
1.5.5.GIT
reply other threads:[~2008-08-05 11:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1217935147-25927-1-git-send-email-bert.wesarg@googlemail.com \
--to=bert.wesarg@googlemail.com \
--cc=git@vger.kernel.org \
--cc=pasky@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).