git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-quiltimport
@ 2010-06-02 15:07 Ian Molton
  0 siblings, 0 replies; 4+ messages in thread
From: Ian Molton @ 2010-06-02 15:07 UTC (permalink / raw)
  To: git; +Cc: ebiederm

[-- 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread
* git-quiltimport
@ 2010-06-03 11:44 Ian Molton
  2010-06-03 12:03 ` git-quiltimport Ramkumar Ramachandra
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Molton @ 2010-06-03 11:44 UTC (permalink / raw)
  To: git; +Cc: ebiederm

[-- Attachment #1: Type: text/plain, Size: 263 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


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

end of thread, other threads:[~2010-06-03 13:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-02 15:07 git-quiltimport Ian Molton
  -- 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

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