* git apply and error
@ 2020-01-14 13:12 Kim NEVELSTEEN
0 siblings, 0 replies; only message in thread
From: Kim NEVELSTEEN @ 2020-01-14 13:12 UTC (permalink / raw)
To: git
Hello git community.
I have noticed some irregular output with "git apply".
When including git in a bash script, I noticed that "git apply" does not report an error when
failing because it is in a git repository.
Example:
QotD:home$ cd src
QotD:home/src$ git apply --stat --apply patch
patch | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
Again:
QotD:home$ git init
QotD:home$ cd src
QotD:home/src$ git apply --stat --apply patch
0 files changed
The problem is not that it doesn't work, but that no error is reported.
QotD:mcp940$ git apply --stat --apply patch || echo "ERROR"
<<nothing printed here>>
Cheers!
-KiM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-01-14 13:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-14 13:12 git apply and error Kim NEVELSTEEN
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).