quilt-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Quilt-dev] patch - list all changed files in all applied patches


From: Andreas Gruenbacher
Subject: Re: [Quilt-dev] patch - list all changed files in all applied patches
Date: Wed, 28 Jul 2004 22:53:35 +0200
User-agent: KMail/1.6.2

On Wednesday 28 July 2004 21:27, Dean Roehrich wrote:
> >From:  Andreas Gruenbacher <address@hidden>
> >
> >I like it. A worthwhile extension might be to also allow passing a range
> > of patches as in the diff command. For that, the first patch to include
> > needs to be specified, e.g.,
> >
> >     --combine {patch|-}   =>   first patch
> >
> >With ``--combine -'' being be the same as ``-a''.
>
> Perhaps.  I'll take a look at it.
>
> >Not sure whether putting patch names in brackets is necessarily a good
> > idea --
> >
> >having no delimiters would at least make scripting easier.
>
> Sure.  I was looking for human-readable output in this case and the
> delimiters helped me, or so I think.  In the "-a -l" case, separating the
> filename from the patchname with only a single space doesn't help my eyes,
> and using a tab is questionable as patch names and path names become
> longer.

I once did this:

        tabs=$'\t\t\t\t\t'

        #echo "0-------8-------16------24------32------40------48"
        while read a b; do
            let n=$(( ${#a} >> 3 ))
            (( n >= ${#tabs} )) && n=$(( ${#ntabs} - 1 ))
            printf "%s%s%s\n" "$a" "${tabs:n}" "$b"
        done

(In addition, in the case where the output was going to a non-terminal I only 
was printing a single tab.)

Cheers,
-- 
Andreas Gruenbacher <address@hidden>
SUSE Labs, SUSE LINUX AG




reply via email to

[Prev in Thread] Current Thread [Next in Thread]