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

git-buildpackage interface change and use in .mrconfig



Hi

The git-buildpackage 0.6.0 has the following NEWS.Debian.gz:

  In order to provide a more consistent and git like interface a new gbp super
  command was added as a front end to all git-* and gbp-* commands. So what was
  either git-<command> or gbp-<command> is now

      gbp <command>

  The old commands are still provided for backward compatibility but will be
  removed in a future release so please update any scripts and tools relying on
  it.

This means that at least in future, when git-buildpackage drops the
support for git-<command> we need to change our use there.

Do we want to change this already, or keep the old style for at least
some time until git-buildpackage migrates to jessie?

There might be people wo also use our mrconfig under wheezy, thus I
refrained to already commit the attached change. Comments?

Regards,
Salvatore
>From d42b58e63cf05c6df6f6a8eaad06ca3bbb8180ad Mon Sep 17 00:00:00 2001
From: Salvatore Bonaccorso <carnil@debian.org>
Date: Thu, 27 Jun 2013 06:23:19 +0200
Subject: [PATCH] Change gbp-<command> calls to gbp <command> calls

In order to provide a more consistent and git like interface a new gbp
super command was added as a front end to all git-* and gbp-* commands.
This change was introduced in git-buildpackage 0.6.0.
---
 .mrconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.mrconfig b/.mrconfig
index 4d2e509..f26c18d 100644
--- a/.mrconfig
+++ b/.mrconfig
@@ -4,10 +4,10 @@ lib=
         echo "I: $1"
       }
       git_checkout () {
-        gbp-clone --all git+ssh://git.debian.org/git/pkg-perl/packages/$1.git
+        gbp clone --all git+ssh://git.debian.org/git/pkg-perl/packages/$1.git
       }
       git_update() {
-        gbp-pull --pristine-tar
+        gbp pull --pristine-tar
       }
       git_checkout_special() {
         git clone git+ssh://git.debian.org/git/pkg-perl/$1.git
-- 
1.8.3.1


Reply to: