gbp-pristine-tar(1)
β¨ gbp-pristine-tar β¨
okay bestie, so this is the git-buildpackage tool that handles your pristine-tar commits β and it's literally called gbp-pristine-tar, and it lives in the git-buildpackage manual. it manages pristine-tar commits in a git repository. no cap. π
πΈ SYNOPSIS πΈ
gbp pristine-tar [--version] [--help] [--verbose]
[--color=[auto|on|off]] [--color-scheme=COLOR_SCHEME]
[--upstream-tag=tag-format]
[--upstream-signatures=[auto|on|off]] [--component=component]... commit filename
π DESCRIPTION π
so what it does: gbp pristine-tar adds the pristine-tar commit for a given upstream tarball into a Git repository. that's the whole vibe. π¦
now, ngl, you're normally not gonna run this yourself β creating new pristine-tar commits is something that happens automatically, done by stuff like gbp import-orig. the tool does it for you while you're off being the main character. β¨
but here's where it eats: this command is still useful when your original tarball is already imported and you want the pristine-tar commits added later, at some point in the future. or β if you're tracking upstream git and you want to create pristine-tar commits anyway, no matter what. so yeah, it's giving "backup plan that slays". π
π OPTIONS π
--versionβ print the version of the program, like the version of the whole git-buildpackage suite. it's the "who am i" moment. π-v,--verboseβ verbose execution. it says more stuff. we love a chatty icon. π£οΈ-h,--helpβ print help and exit. your little map, bestie. πΊοΈ--color=[auto|on|off]β whether to use colored output. pick your aesthetic. π¨--color-scheme=COLOR_SCHEMEβ the colors to use in output (when color is enabled, obvi). the format forCOLOR_SCHEMEis'<debug>:<info>:<warning>:<error>'. numerical values and color names are both accepted, and empty fields imply the default color. for example,--git-color-scheme='cyan:34::'would show debug messages in cyan, info messages in blue, and other messages in default β which means warning and error messages show up in red. so like, custom palette, periodt. π--upstream-tag=tag-formatβ use this tag format when tagging upstream versions. the default isupstream/%(version)s. π·οΈ--upstream-signatures=[auto|on|off]β whether upstream signatures should be imported as well.offturns this off completely.onalways tries to import a signature β which can be useful if you want things to fail when e.g.uscandid not fetch a signature (yes that's a feature, dramatic but correct π). the defaultautomeans: import a signature file if it's present, but do nothing otherwise. very "read the room" energy. π--component=COMPONENTβ when creating the pristine-tar commits, also look for an additional tarball with component nameCOMPONENT. e.g. inhello-debhelper_1.0.orig-foo.tar.gzthe component name would befoo. the additional tarball is expected to be in the same directory than the upstream tarball and to use the same compression type. this option can be given multiple times to add multiple additional tarballs. π
using additional original tarballs is a feature of the3.0 (quilt)source format. see thedpkg-sourcemanpage for details. this is currently considered an experimental feature and might change incompatibly. β οΈ so don't get too attached, bestie.
π₯ EXAMPLES π₯
add pristine-tar commits for an upstream tarball:
gbp pristine-tar commit ../upstream-tarball-0.1.tar.gz
same as above but with an additional tarball ../upstream-tarball-foo-0.1.tar.gz:
gbp pristine-tar --component-tarball=foo commit ../upstream-tarball-0.1.tar.gz
look at that, two whole tarballs, ate and left no crumbs π
π§ CONFIGURATION FILES π§
several gbp.conf files are parsed to set defaults for the above command-line arguments. see the gbp.conf(5) manpage for details. it's the "set it and forget it" zone. β¨
π SEE ALSO π
gbp-import-orig(1)gbp.conf(5)debuild(1)git(1)pristine-tar(1)- The Git-Buildpackage Manual β¨
file:///usr/share/doc/git-buildpackage/manual-html/index.htmlβ©
π«Ά AUTHOR π«Ά
Guido GΓΌnther <agx@sigxcpu.org> β thank you for your service, king π
okay and for the cute sign-off: this lil page comes from the git-buildpackage Manual, dated 26 May 2026, section gbp-pristine-tar(1). that's the whole thing bestie, go make some pristine-tar commits πβ¨π
π¦ where this page comes from
- ubuntu stonking: git-buildpackage 0.9.43 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms