From 13817db2746d48b6d3cfe68e3bf10a1be67865a9 Mon Sep 17 00:00:00 2001 From: Harald Nordgren Date: Tue, 28 Apr 2026 18:39:08 +0000 Subject: [PATCH 1/5] 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 | 28 ++++++++++++++++++++-------- t/t3903-stash.sh | 24 ++++++++++++++++++++++++ xdiff/xmerge.c | 6 +++--- 4 files changed, 57 insertions(+), 12 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=