gbp-import-dsc

&dhsection;

gbp-import-dsc

Import &debian; packages into a &git; repository

          &gbp-import-dsc;
          &man.common.options.synopsis;
          --allow-same-versions
          --author-date-is-committer-date
          --author-is-committer
          --debian-branch=branch_name
          --debian-tag=tag-format
          --download
          --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
          debian-source.dsc

          &gbp-import-dsc;
          options
          --download
          --[no-]allow-unauthenticated

            URL
            source-package

## 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; diffs, and upstream source, is automatically detected from the source package.

If the command is run from within an existing repository, it will import into this; if not, a new repository named as the Debian source package is created.

## OPTIONS

&man.common.options.description;

`--upstream-branch`=`branch_name`

- The branch in the &git; repository the upstream sources are put onto. Default is `upstream`.

`--debian-branch`=`branch_name`

- The branch in the &git; repository the debian sources are put onto. Default is `master`.

`--[no-]sign-tags`

- GPG sign all created tags

`--keyid=``gpg-keyid`

- use this keyid for gpg signing tags

`--debian-tag=``tag-format`

- use this tag format when tagging &debian; versions, default is `debian/%(version)s`

`--upstream-tag=``tag-format`

- use this tag format when tagging upstream versions, default is `upstream/%(version)s`

`--skip-debian-tag`

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

`--filter=``pattern`

- filter out files glob-matching pattern. Can be given multiple times.

`--pristine-tar`

- generate pristine-tar delta file

`--download`

- Download the source package instead of looking for it in the local file system. The argument can either be a `source-package` name or a `URL`. The former uses &apt-get; to download the source while the later uses &dget;.

`--allow-unauthenticated`

- Whether to skip signature verification on downloads.

`--allow-same-version`

- Allow one to import a package with the same debian version.

`--author-is-committer`

- When importing the &debian; patch, use the author identity as committer identity.

`--author-date-is-committer-date`

- When importing the &debian; patch, use the author date as committer date.

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

`--[no-]create-missing-branches`

- Create missing upstream and debian branch if missing.

&man.gbp.config-files;

## EXAMPLES

Download and import a source package from a URL:

          &gbp-import-dsc; --download http://http.debian.net/debian/pool/main/h/hello/hello_2.10-1.dsc

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

          &gbp-import-dsc; --download hello/sid

## SEE ALSO

man.gbp.import.dscs, man.gbp.buildpackage, man.gbp.import.orig, man.gbp.dch,

apt-get

1 ,

dget

1 , man.gbp.conf, &man.seealso.common;

## AUTHOR

&dhusername; &dhemail;