diff options
| author | Kristoffer Haugsbakk <code@khaugsbakk.name> | 2024-10-09 18:53:45 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-10-09 10:40:42 -0700 |
| commit | c4b8fb6ef2114a4df4dc7a0a07233e91a272a29e (patch) | |
| tree | dc02a7529ac92d7421146df2d497da4c63941cc3 /builtin/replace.c | |
| parent | 4f71522dfb7fc53eff569023303980c66114b1bc (diff) | |
doc: merge-tree: improve example script
• Provide a commit message in the example command.
The command will hang since it is waiting for a commit message on
stdin. Which is usable but not straightforward enough since this is
example code.
• Use `||` directly since that is more straightforward than checking the
last exit status.
Also use `echo` and `exit` since `die` is not defined.
• Expose variable declarations.
Signed-off-by: Kristoffer Haugsbakk <code@khaugsbakk.name>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/replace.c')
0 files changed, 0 insertions, 0 deletions
