All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Molton <ian.molton@collabora.co.uk>
To: git@vger.kernel.org
Cc: ebiederm@lnxi.com
Subject: git-quiltimport
Date: Wed, 02 Jun 2010 16:07:37 +0100	[thread overview]
Message-ID: <4C0673B9.20801@collabora.co.uk> (raw)

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

Hi,

I've written a little patch to git-quiltimport that helps it with some stupid
 quilt repos.

Its still no use to me because it cant understand .bz2 compressed patches,
 but I thought this might help some folk out.

Hopefully t-bird wont mangle my patch...


[-- Attachment #2: 0001-Add-a-series-option-to-git-quiltimport.patch --]
[-- Type: text/x-patch, Size: 2315 bytes --]

>From 475ce14394d75cadcc5c77ab1060a9a81bceaac4 Mon Sep 17 00:00:00 2001
From: Ian Molton <ian.molton@collabora.co.uk>
Date: Wed, 2 Jun 2010 15:59:25 +0100
Subject: [PATCH] Add a --series option to git-quiltimport

	This allows git-quiltimport to handle quilt patchsets with the
series fil in a nonstandard location.
---
 Documentation/git-quiltimport.txt |    7 +++++++
 git-quiltimport.sh                |   10 ++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Documentation/git-quiltimport.txt b/Documentation/git-quiltimport.txt
index 579e8d2..da509e0 100644
--- a/Documentation/git-quiltimport.txt
+++ b/Documentation/git-quiltimport.txt
@@ -10,6 +10,7 @@ SYNOPSIS
 --------
 [verse]
 'git quiltimport' [--dry-run | -n] [--author <author>] [--patches <dir>]
+                  [--series <file>]
 
 
 DESCRIPTION
@@ -49,6 +50,12 @@ The default for the patch directory is patches
 or the value of the $QUILT_PATCHES environment
 variable.
 
+--series <file>::
+	The file to read the series information from.
++
+The default location for the series file is a
+file called series in the patch directory.
+
 Author
 ------
 Written by Eric Biederman <ebiederm@lnxi.com>
diff --git a/git-quiltimport.sh b/git-quiltimport.sh
index 9a6ba2b..85f27b1 100755
--- a/git-quiltimport.sh
+++ b/git-quiltimport.sh
@@ -5,7 +5,8 @@ git quiltimport [options]
 --
 n,dry-run     dry run
 author=       author name and email address for patches without any
-patches=      path to the quilt series and patches
+patches=      path to the quilt patches
+series=       quilt series file (default to $QUILT_PATCHES/series)
 "
 SUBDIRECTORY_ON=Yes
 . git-sh-setup
@@ -26,6 +27,10 @@ do
 		shift
 		QUILT_PATCHES="$1"
 		;;
+        --series)
+		shift
+		QUILT_SERIES="$1"
+		;;
 	--)
 		shift
 		break;;
@@ -47,6 +52,7 @@ fi
 
 # Quilt patch directory
 : ${QUILT_PATCHES:=patches}
+: ${QUILT_SERIES:=$QUILT_PATCHES/series}
 if ! [ -d "$QUILT_PATCHES" ] ; then
 	echo "The \"$QUILT_PATCHES\" directory does not exist."
 	exit 1
@@ -134,5 +140,5 @@ do
 		commit=$( (echo "$SUBJECT"; echo; cat "$tmp_msg") | git commit-tree $tree -p $commit) &&
 		git update-ref -m "quiltimport: $patch_name" HEAD $commit || exit 4
 	fi
-done 3<"$QUILT_PATCHES/series"
+done 3<"$QUILT_SERIES"
 rm -rf $tmp_dir || exit 5
-- 
1.7.1


             reply	other threads:[~2010-06-02 15:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-02 15:07 Ian Molton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-06-03 11:44 git-quiltimport Ian Molton
2010-06-03 12:03 ` git-quiltimport Ramkumar Ramachandra
2010-06-03 12:58   ` git-quiltimport Ian Molton

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=4C0673B9.20801@collabora.co.uk \
    --to=ian.molton@collabora.co.uk \
    --cc=ebiederm@lnxi.com \
    --cc=git@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.