gbp-import-dscs(1)

πŸ’– gbp-import-dscs(1) β€” the git-buildpackage manual, but make it slay πŸ’–

okay bestie, so you know gbp-import-dscs from the git-buildpackage manual? yeah, that one. sit down, get comfy, we're doing this together 🫢


✨ NAME ✨

gbp-import-dscs β€” imports several versions of a Debian source package into a Git repository, and it sorts them by version number first. yes, sorted. it's giving organized. it's giving main character energy πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

gbp import-dscs [options] [gbp import-dsc options] pkg_1.dsc pkg_2.dsc
                ...  or
gbp import-dscs {--debsnap} [options] [gbp import-dsc options] {package}

two whole modes. pick your fighter πŸ’…


🌸 DESCRIPTION 🌸

So. gbp import-dscs takes a bunch of versions of a Debian source package and imports them into a Git repository. That's the whole vibe.

The way it does it? First it sorts the packages by their versions β€” like, alphabetically but for versions, no cap β€” and then it imports them by calling gbp import-dsc on each package. one by one. little worker bee 🐝

Now here's the part that lowkey matters: if your current directory isn't already a Git repository, the repo gets created in a subdir of your current working directory, and it's named after the first imported package. Cute, right? But if you're already inside a Git repository, then that Git repository in the current working directory is the one being used. Same repo, no drama.

Which means β€” and this is the iconic bit β€” it allows for incremental imports. run it again later, add more versions, we grow 🌱


πŸŽ€ OPTIONS πŸŽ€

  • --debsnap β€” fetches snapshots from snapshots.debian.org using debsnap. yes, it goes and gets them for you. obsessed.
  • --ignore-repo-config β€” ignores gbp.conf files stored in the git repository itself. super useful when you wanna ignore branch information and other options that got shipped inside the package source. like, ma'am, I don't need your opinions today πŸ™ˆ
and literally every other option? passed on verbatim to gbp import-dsc. not touched, not filtered, not rewritten. straight through. periodt.

πŸ”₯ EXAMPLES πŸ”₯

Picture this: you're in an empty directory (empty dir energy, we've all been there) and you wanna download every version of the package entr that's available at Debian snapshots, and import them all into a brand new git repository. you do this:

gbp import-dscs --verbose --pristine-tar --create-missing-branches --debsnap entr

look at her go. ate. πŸ’…βœ¨


πŸ’œ SEE ALSO πŸ’œ

go read your other favs, they miss you πŸ₯°


πŸ’« AUTHOR πŸ’«

Guido GΓΌnther <agx@sigxcpu.org> β€” the legend himself. thank you for your service 🫑


okay that's the whole page, bestie!! this came from the git-buildpackage Manual, version-flavored 26 May 2026, and it's the gbp-import-dscs(1) page β€” now go import some dscs and be iconic πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from