From 1fcc199bd8380f87c7ca79c8433db116c2620afc Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Fri, 10 Apr 2026 21:01:10 +0000 Subject: [PATCH] stash: add --label-ours, --label-theirs, --label-base for apply Allow callers of "git stash apply" to pass custom labels for conflict markers instead of the default "Updated upstream" and "Stashed changes". Document the new options and add a test. Signed-off-by: Harald Nordgren Signed-off-by: Junio C Hamano --- Documentation/git-stash.adoc | 11 ++++++++++- builtin/stash.c | 32 +++++++++++++++++++++++++------- t/t3903-stash.sh | 29 +++++++++++++++++++++++++++++ xdiff/xmerge.c | 6 +++--- 4 files changed, 67 insertions(+), 11 deletions(-) diff --git a/Documentation/git-stash.adoc b/Documentation/git-stash.adoc index b05c990ecd..50bb89f483 100644 --- a/Documentation/git-stash.adoc +++ b/Documentation/git-stash.adoc @@ -12,7 +12,7 @@ git stash list [] git stash show [-u | --include-untracked | --only-untracked] [] [] git stash drop [-q | --quiet] [] git stash pop [--index] [-q | --quiet] [] -git stash apply [--index] [-q | --quiet] [] +git stash apply [--index] [-q | --quiet] [--label-ours=