gbp-import-dsc(1)

NAME
gbp-import-dsc - Import Debian packages into a Git repository

SYNOPSIS
gbp import-dsc
[--version] [--help] [--verbose] [--color=[auto|on|off]] [--color-scheme= COLOR_SCHEME] [--allow-same-versions] [--author-date-is-committer-date] [--author-is-committer] [--debian-branch= branch_name] [--debian-tag= tag-format] [--filter= pattern]... [--keyid= gpg-keyid] [--[no-]create-missing-branches] [--[no-]pristine-tar] [--[no-]sign-tags] [--skip-debian-tag] [--upstream-branch= branch_name] [--upstream-tag= tag-format] [--repo-user= [GIT|DEBIAN]] [--repo-email= [GIT|DEBIAN]] debian-source.dsc [target]
gbp import-dsc
[options] [--[no-]allow-unauthenticated] URL [target]

DESCRIPTION
gbp import-dsc imports a Debian source package into a Git repository, notes the package version in the commit logs, and commits the change. All information, including package name, version, Debian modifications and upstream source, is automatically detected from the source package. After import the repository can be used with the other gbp tools.

If the command is run from within an existing Git repository, it will import into it; if not, a new repository named as the Debian source package is created. You can override the location of the new repository by specifying the optional target argument.

When given a URL gbp import-dsc will download the source package prior to importing it. dget is used for all schemes except for the special scheme apt:/// which uses apt-get (and therefore needs deb-src entries in your \FC/etc/apt/sources.list\F[]). The later can be abbreviated by using the pseudo URL apt:.

OPTIONS

\FC--version\F[]
    Print version of the program, i.e. version of the git-buildpackage suite

\FC-v\F[], \FC--verbose\F[]
    Verbose execution

\FC-h\F[], \FC--help\F[]
    Print help and exit

\FC--color=\F[][auto|on|off]
    Whether to use colored output.

\FC--color-scheme=\F[]COLOR_SCHEME
    Colors to use in output (when color is enabled). The format for COLOR_SCHEME is '<debug>:<info>:<warning>:<error>'. Numerical values and color names are accepted, empty fields imply the default color. For example, \FC--git-color-scheme=\F[]\FC'cyan:34::'\F[] would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).

\FC--upstream-branch\F[]=branch_name
    The branch in the Git repository the upstream sources are put onto. Default is upstream.

\FC--debian-branch\F[]=branch_name
    The branch in the Git repository the debian sources are put onto. Default is master.

\FC--[no-]sign-tags\F[]
    GPG sign all created tags

\FC--keyid=\F[]gpg-keyid
    Use this keyid for gpg signing tags.

\FC--debian-tag=\F[]tag-format
    Use this tag format when tagging Debian versions, default is debian/%(version)s.

\FC--upstream-tag=\F[]tag-format
    Use this tag format when tagging upstream versions, default is upstream/%(version)s.

\FC--skip-debian-tag\F[]
    Don't create Debian tag after importing the Debian patch. This can be useful if you already created a package but want to further work on it after importing it into git.

\FC--filter=\F[]pattern
    Filter out files glob-matching pattern from upstream tarballs and the debian tarball of 3.0(quilt) packages. Note that the .diff.gz of 1.0 source format packages is currently not filtered.

    This option can be given multiple times.

\FC--pristine-tar\F[]
    Generate pristine-tar delta file.

\FC--allow-unauthenticated\F[]
    Whether to skip signature verification on downloads. Passed on verbatim to dget and apt-get respectively. Use with care.

\FC--allow-same-version\F[]
    Allow one to import a package with the same debian version.

\FC--author-is-committer\F[]
    When importing the Debian patch, use the author identity as committer identity.

\FC--author-date-is-committer-date\F[]
    When importing the Debian patch, use the author date as committer date.
    Warning

    Git will subtly misbehave if the committer date of a commit is not later than or equal to all its parents.

\FC--[no-]create-missing-branches\F[]
    Create upstream and debian branch if missing.

\FC--repo-user=\F[]\FC[GIT|DEBIAN]\F[]
    When set to \FCDEBIAN\F[] use the DEBUSER environment variable to set the user.name Git configuration otherwise use Git's defaults. Only affects newly created repos.

\FC--repo-email=\F[]\FC[GIT|DEBIAN]\F[]
    When set to \FCDEBIAN\F[] use the DEBEMAIL environment variable to set the user.email Git configuration otherwise use Git's defaults. Only affects newly created repos.

CONFIGURATION FILES
Several \FCgbp.conf\F[] files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5) manpage for details.

EXAMPLES
Download and import a source package from a URL:

\FC
      gbp import-dsc http://http.debian.net/debian/pool/main/h/hello/hello_2.10-1.dsc
    \F[]

Download and import a source package via apt-get source from unstable:

\FC
      gbp import-dsc apt:hello/sid
    \F[]

Import a source package in the local file system:

\FC
      gbp import-dsc ../hello_2.10-1.dsc
    \F[]

SEE ALSO
gbp-import-dscs(1), gbp-buildpackage(1), gbp-import-orig(1), gbp-dch(1), apt-get(1), sources.list(5), dget(1), gbp.conf(5), debuild(1), git(1), pristine-tar(1),

AUTHOR
Guido Günther <\FCagx@sigxcpu.org\F[]>