Currently, the reflog disallows any entries that have a message with newlines, as that would effectively break the reflog format, which may contain a single line per entry, only. Upstream git behaves a bit differently, though, especially when considering stashes: instead of rejecting any reflog entry with newlines, git will simply replace newlines with spaces. E.g. executing 'git stash push -m "foo\nbar"' will create a reflog entry with "foo bar" as entry message. This commit adjusts our own logic to stop rejecting commit messages with newlines. Previously, this logic was part of `git_reflog_append`, only. There is a second place though where we add reflog entries, which is the serialization code in the filesystem refdb. As it didn't contain any sanity checks whatsoever, the refdb would have been perfectly happy to write malformatted reflog entries to the disk. This is being fixed with the same logic as for the reflog itself.
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
branches | Loading commit data... | |
reflog | Loading commit data... | |
crashes.c | Loading commit data... | |
create.c | Loading commit data... | |
delete.c | Loading commit data... | |
dup.c | Loading commit data... | |
foreachglob.c | Loading commit data... | |
isvalidname.c | Loading commit data... | |
iterator.c | Loading commit data... | |
list.c | Loading commit data... | |
listall.c | Loading commit data... | |
lookup.c | Loading commit data... | |
namespaces.c | Loading commit data... | |
normalize.c | Loading commit data... | |
overwrite.c | Loading commit data... | |
pack.c | Loading commit data... | |
peel.c | Loading commit data... | |
races.c | Loading commit data... | |
read.c | Loading commit data... | |
ref_helpers.c | Loading commit data... | |
ref_helpers.h | Loading commit data... | |
rename.c | Loading commit data... | |
revparse.c | Loading commit data... | |
setter.c | Loading commit data... | |
shorthand.c | Loading commit data... | |
transactions.c | Loading commit data... | |
unicode.c | Loading commit data... | |
update.c | Loading commit data... |