Age | Commit message (Collapse) | Author |
|
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Change-Id: I9331fec6fcd0e58dad7cb4a571a683e09ce08011
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Previously empty prefix in tarball generation introduced a leading slash
in all filenames in the archive.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
|
|
External diff might break patch generation, for example.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
For generating textual diffs. Useful for Pq - for example, the 'patch'
utility does not support git binary diffs.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Lingchaox Xin <lingchaox.xin@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Useful common functionality.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
For getting diffstat and summary in the output.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Otherwise the mangled GBP_CONF_FILES affects also other doctests when
run with python-nose.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
since the later doesn't exist in python3
|
|
When regenerating the patch queue including patches from the Debian
branch is not useful. Addresses parts of See #680705.
Thanks: Benjamin Cama for the detailed analysis
|
|
The symmetric difference isn't always useful since it includes changes
from both branches. See #680705.
|
|
|
|
This code that determined if we found a snapshot header was obuscated by
the code that determines the commits to add. Split those and better
document their purpose. Also always return the commit to start from so
we don't need to repeat the logic in the uper levels.
|
|
since --set-upstream is deprecated.
|
|
|
|
Move setting of the upstream branch out of the loop. This worked by
accident.
|
|
instead of the deprecated _git_getoutput
|
|
instead of the deprecated _git_inout and clarify the return codes and
exceptions raised.
|
|
No need to leak fds to the child.
|
|
We should set stdin to subprocess.PIPE when piping input according
to the subprocess docs.
|
|
It's shorter and get's rid of the unused dummy variable.
|
|
|
|
There's no need to fill the parser with all the built in defaults since
we can simply copy them to the config from the class dict. This allows
us to first set the values from the old {git,gbp}-* commands and then
only overwrite changed values from the newer "gbp <command>" versions.
Otherwise we'd overwite all old style config with the new style one.
This also fixes the problem where the default section wouldn't be read
at all if the command doesn't even have an empty section in any gbp.conf
file.
|
|
instead of git-import-dsc
|
|
and robustify against invalid modules names.
|
|
|
|
For backward compatibility between {gbp,git}-<subcommand> and "gbp
<subcommand>" make sure we parse the former sections if using the later.
|
|
and not the one from the OptionParser. The instance's default dict this
gets reset to empty when invoking OptionParser.__init__.
|
|
So like git you can now use gbp <command> instead of git-<command> or
gbp-<command>. The manpages and docs aren't adjusted yet.
|
|
Allow diffing a single object, e.g. getting diff from single commit.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Git-Dch: Ignore
|
|
This kills another _git_getoutput. Also deprecate the method since we
don't need to special case the 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>
|
|
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>
|
|
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>
|
|
To be consistent with the date property and for easier compatibility
with git dates.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Guido Günther <agx@sigxcpu.org>
Closes: #708636
|
|
This fixes the doctest and also makes sure we use an up to date manpage.
Thanks: Daniel Dehennin for the report
|
|
|
|
to suppress the confusiong "fatal: ref HEAD is not a symbolic ref". We
alrady put out a more descriptive error message. This makes using
--ignore-branch look far less dangerous.
|
|
This allows us to fetch upstream and pristine-tar even when in detached
head state. This can be usefull when e.g. building in jenkins which uses
a detached head by default.
|
|
This fixes a problem when running git-dch form a detached HEAD
|