git-buildpackage: Unbreak overlay mode

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Closes: #708636
Add Jenkins Scratchbuilder example

It's a simple script that can be used to build Debian packages via gbp
and Jenkins.
Document changes and release 0.6.0~git20130630
gitmodifier: make the datetime object always have timezone

To be consistent with the date property and for easier compatibility
with git dates.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
GitRepository/get_commit_info: add patchname to info

Add a new 'patchname' field to the information returned by
get_commit_info. That is, the subject in a sanitized format, similar to
what git-format-patch uses.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
import-orig: keep working copy in sync with branch HEAD

Update working copy and index (to branch HEAD) if we modify the
currently checked-out branch. Otherwise the repository is left in
unclean state when the current branch is upstream or pristine-tar and
the '--no-merge' option is used.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Remove unused imports
buildpackage: use get_commit_info() instead of get_subject()

Utilize the get_commit_info() method of GitRepository instead of the
deprecated get_subject().

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
GitRepository.get_subject: use get_commit_info

This kills another _git_getoutput. Also deprecate the method since we
don't need to special case the subject.
Simplify expression

Git-Dch: Ignore
GitRepository/diff: allow single object

Allow diffing a single object, e.g. getting diff from single commit.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Add wrapper for all gbp commands

So like git you can now use gbp <command> instead of git-<command> or
gbp-<command>. The manpages and docs aren't adjusted yet.
GbpOptionParser: Make sure we access the GbpOptionParser*'s default dict

and not the one from the OptionParser. The instance's default dict this
gets reset to empty when invoking OptionParser.__init__.
GbpOptionParser: Make sure we parse the old config sections

For backward compatibility between {gbp,git}-<subcommand> and "gbp
<subcommand>" make sure we parse the former sections if using the later.
GbpOptionParser: add test for 'filter' option handling
Git-Ignore generated gbp.conf.5 too
Bash complete on "gbp <command>" too
Add gbp manpage
docs: Use gbp <command> instead of {git,gbp}-<command>
manpages: Changes references from git- to gbp-