| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| | |
feat(cmd): add the `strip_newline` flag
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|
|
|
|
|
|
| |
This commit adds the `strip_newline` flag to the `Git.execute` method.
When this flag is set to `True`, it will trim the trailing `\n`. The
default value is `True` for backward compatibility. Setting it to
`False` is helpful for, e.g., the `git show` output, especially with the binary
file, as the missing `\n` may invalidate the file.
|
| |
|
|
| |
This matches the signature from `Head.create`.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Related to https://github.com/gitpython-developers/gitdb/issues/77
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
https://huntr.dev/bounties/8549d81f-dc45-4af7-9f2a-2d70752d8524/
|
| | |
|
| | |
|
| |
|
|
| |
To create a window application with pyinstaller, all suprocess input and output streams must be assigned and must not be None.
https://stackoverflow.com/a/51706087/7076612
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix #971. Partly resolve #703.
If the hook doesn't have a file extension, then Windows won't know how
to run it and you'll get "[WinError 193] %1 is not a valid Win32
application". It's very likely that it's a shell script of some kind, so
use bash.exe (commonly installed via Windows Subsystem for Linux). We
don't want to run all hooks with bash because they could be .bat files.
Update tests to get several hook ones working. More work necessary to
get commit-msg hook working. The hook writes to the wrong file because
it's not using forward slashes in the path:
C:\Users\idbrii\AppData\Local\Temp\bare_test_commit_msg_hook_successy5fo00du\CUsersidbriiAppDataLocalTempbare_test_commit_msg_hook_successy5fo00duCOMMIT_EDITMSG
|
| | |
|
| |
|
| |
This should not be imported at root level, since it adds a lot of initialization overhead without need.
|
| |
|
| |
This should not be imported at root level, since it adds a lot of initialization overhead without need.
|
| | |
|
| | |
|
| |
|
|
| |
A regression that was introduced with d79d20d.
|
| | |
|
| | |
|
| |
|
|
| |
This reverts commit 01f09888208341876d1480bd22dc8f4107c100f1.
|
| |
|
|
|
|
|
| |
The whitespace handling and trailer selection isn't very trivial or good
documented. It therefore seemed easier and less error prone to just call
git to parse the message for the trailers section and remove superfluos
whitespaces.
|
| |
|
|
|
|
|
|
| |
With the command `git interpret-trailers` git provides a way to interact
with trailer lines in the commit messages that look similar to RFC 822
e-mail headers (see: https://git-scm.com/docs/git-interpret-trailers).
The new property returns those parsed trailer lines from the message as
dictionary.
|
| | |
|
| |
|
| |
Use NUL character instead of semicolon to extract meta and path. Avoid errors in during git diff when dealing with filenames containing semicolons
|
| |
|
|
|
| |
With each patch level it may bring up new issues that cause CI failure
for without being related to the actual change.
|
| |
|
|
|
|
|
| |
This isn't needed as git will replace this file atomicially,
hence we always see a fully written file when reading.
Only when writing we need to obtain a lock.
|
| | |
|
| |
|
|
|
|
| |
The original change requiring py3.10 TypeGuard (and matching
typing_extensions) has been reverted, so revert the requirement
on typing_extensions as well.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
List-like, so that it's backward compatible. But it has a new method
raise_on_error, that throws an exception if anything failed to push.
Related to #621
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
| |
…https://github.com/pytest-dev/pytest-cov/pull/472
Break a few to fix a few.
|
| |
|
|
|
|
|
|
|
|
|
| |
This reverts commit 53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5.
The reason for the revert is that the commit in question introduced a
regression where certain modules, functions and classes that were
exposed before were no longer exposed.
See https://github.com/gitpython-developers/GitPython/pull/1352#issuecomment-932757204
for additional information.
|