* [PATCH Cogito] Fix file list wrapping of cg-log
@ 2005-05-13 11:25 Marcel Holtmann
0 siblings, 0 replies; only message in thread
From: Marcel Holtmann @ 2005-05-13 11:25 UTC (permalink / raw)
To: Petr Baudis; +Cc: GIT Mailing List
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
Hi Petr,
the attached patch fixes the file list wrapping for the second and
following lines by adding two extra spaces. It also corrects the line
width counting that is wrong after the first line break.
Regards
Marcel
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 575 bytes --]
Index: cg-log
===================================================================
--- de641904363cd3759f132ee7c0dfaf8a2ee58388/cg-log (mode:100755)
+++ uncommitted/cg-log (mode:100755)
@@ -69,6 +69,7 @@
{
tree1="$1"
tree2="$2"
+ line=
sep=" * $colfiles"
# List all files for for the initial commit
if [ -z $tree2 ]; then
@@ -84,9 +85,9 @@
line="$line$sep$file"
echo -n "$file"
else
- line="$file"
+ line=" $file"
echo "$coldefault"
- echo -n " $colfiles$file"
+ echo -n " $colfiles$file"
fi
done
echo "$coldefault:"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-05-13 11:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-13 11:25 [PATCH Cogito] Fix file list wrapping of cg-log Marcel Holtmann
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).