Age | Commit message (Collapse) | Author |
|
head is not a function so it doesn't _return_ anything
Gbp-Dch: Ignore
|
|
Gbp-Dch: Ignore
|
|
Simple wrapper to the git-status command.
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
This is a method of getting the filename and status information of a
diff. That is, a list of files that changed and their status, "added",
"modified" etc.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Preventing a infinite recursion which can be triggered by gbp pq export
--commit.
|
|
Thanks: Sandro Tosi
Closes: #748339
|
|
Which caused an unwanted behavior of not fetching refs/heads at all --
only tags were fetched.
This reverts commit 5dd598fb8f2a9109189fad6cf631811f12ce2130
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Explicitly use --tags in git arguments - otherwise tags might not be
fetched.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Use the '--no-renames' git command line option in order to prevent two
filenames per entry.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Previously, gbp didn't correctly parse this kind of URL and clone
failed.
Signed-off-by: Guan Junchun <junchunx.guan@intel.com>
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
by using --porcelain. Heavily based on a patch by rian m. carlson
Closes: #726260
|
|
Superceded byt the get_remotes() method.
Change-Id: I34f9e8b8188b5a40ce21d2f74e6068f2aaec9e60
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Use the new get_remotes() method
Change-Id: Ic34cf590a6f36e6fa0af2ffbe932c8ae3a198944
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Add a new GitRemote class for representing git remote repositories.
The initial, very limited, version only contains information about the
fetch and push URLs of the remote repository.
Also, add a new GitRepository.get_remotes() method for getting remote
repositories as instances of the new GitRemote class.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
Also changes the method to utilize the GitArgs class.
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>
|
|
Change-Id: I9331fec6fcd0e58dad7cb4a571a683e09ce08011
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
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>
|
|
For getting diffstat and summary in the output.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
since the later doesn't exist in python3
|
|
The symmetric difference isn't always useful since it includes changes
from both branches. See #680705.
|
|
|
|
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.
|
|
Allow diffing a single object, e.g. getting diff from single commit.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
|
|
This kills another _git_getoutput. Also deprecate the method since we
don't need to special case the subject.
|
|
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>
|
|
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.
|
|
to avoid spurious output on the console and add the error message to the
exception intead.
|
|
and make sure the callers forward the error properly
|
|
but add any error output to the exception instead. All callers have been
audited to properly output the message if needed.
|
|
None of the gbp script rely on the output being printed. In fact we
improve the exception by appending the stderr output.
|
|
It's not used within gbp itself so no command line tool expects
an error message to be printed.
|
|
This also silences 10_test_get_upstream_tree
|