git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Tweak git-quiltimport to allow more flexible series format
@ 2007-11-22 13:48 Alexey Dobriyan
  2007-11-22 23:43 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Alexey Dobriyan @ 2007-11-22 13:48 UTC (permalink / raw)
  To: git; +Cc: adobriyan

Make quiltimport also understand comments following patch name.

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
---

 git-quiltimport.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/git-quiltimport.sh
+++ b/git-quiltimport.sh
@@ -63,7 +63,7 @@ tmp_info="$tmp_dir/info"
 commit=$(git rev-parse HEAD)
 
 mkdir $tmp_dir || exit 2
-for patch_name in $(grep -v '^#' < "$QUILT_PATCHES/series" ); do
+for patch_name in $(sed -e 's/#.*//' < "$QUILT_PATCHES/series" ); do
 	if ! [ -f "$QUILT_PATCHES/$patch_name" ] ; then
 		echo "$patch_name doesn't exist. Skipping."
 		continue

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Tweak git-quiltimport to allow more flexible series format
  2007-11-22 13:48 [PATCH] Tweak git-quiltimport to allow more flexible series format Alexey Dobriyan
@ 2007-11-22 23:43 ` Junio C Hamano
  2007-11-27 16:52   ` Alexey Dobriyan
  0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-11-22 23:43 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: git, adobriyan

Alexey Dobriyan <adobriyan@sw.ru> writes:

> Make quiltimport also understand comments following patch name.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
> ---
>
>  git-quiltimport.sh |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- a/git-quiltimport.sh
> +++ b/git-quiltimport.sh
> @@ -63,7 +63,7 @@ tmp_info="$tmp_dir/info"
>  commit=$(git rev-parse HEAD)
>  
>  mkdir $tmp_dir || exit 2
> -for patch_name in $(grep -v '^#' < "$QUILT_PATCHES/series" ); do
> +for patch_name in $(sed -e 's/#.*//' < "$QUILT_PATCHES/series" ); do
>  	if ! [ -f "$QUILT_PATCHES/$patch_name" ] ; then
>  		echo "$patch_name doesn't exist. Skipping."
>  		continue

Is this consistent with the way quilt groks the series file?

IOW, does quilt forbid patchfile whose name contains a hash, and
anything after a hash on the line is taken as comment?

Can a line in a quilt series file name more than one patchfile?
If so, are they whitespace separated?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] Tweak git-quiltimport to allow more flexible series format
  2007-11-22 23:43 ` Junio C Hamano
@ 2007-11-27 16:52   ` Alexey Dobriyan
  0 siblings, 0 replies; 3+ messages in thread
From: Alexey Dobriyan @ 2007-11-27 16:52 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, adobriyan

On Thu, Nov 22, 2007 at 03:43:53PM -0800, Junio C Hamano wrote:
> Alexey Dobriyan <adobriyan@sw.ru> writes:
> 
> > Make quiltimport also understand comments following patch name.
> >
> > Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
> > ---
> >
> >  git-quiltimport.sh |    2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > --- a/git-quiltimport.sh
> > +++ b/git-quiltimport.sh
> > @@ -63,7 +63,7 @@ tmp_info="$tmp_dir/info"
> >  commit=$(git rev-parse HEAD)
> >  
> >  mkdir $tmp_dir || exit 2
> > -for patch_name in $(grep -v '^#' < "$QUILT_PATCHES/series" ); do
> > +for patch_name in $(sed -e 's/#.*//' < "$QUILT_PATCHES/series" ); do
> >  	if ! [ -f "$QUILT_PATCHES/$patch_name" ] ; then
> >  		echo "$patch_name doesn't exist. Skipping."
> >  		continue
> 
> Is this consistent with the way quilt groks the series file?
> 
> IOW, does quilt forbid patchfile whose name contains a hash, and
> anything after a hash on the line is taken as comment?

It looks like hash inside a patch name is legal.
 
> Can a line in a quilt series file name more than one patchfile?

No. Which means we can probably do sed -e 's/^#//' -e 's/[ \t]#.*//'
... let me experiment bit more.

> If so, are they whitespace separated?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-27 16:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-22 13:48 [PATCH] Tweak git-quiltimport to allow more flexible series format Alexey Dobriyan
2007-11-22 23:43 ` Junio C Hamano
2007-11-27 16:52   ` Alexey Dobriyan

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).