git/suse-use-builtin-add-interactive.patch
Richard Brown 271082f7a2 Accepting request 883834 from devel:tools:scm
- add suse-use-builtin-add-interactive.patch
- split git-core perl module into git-core, move instaweb
  to git-web, and the single remaining perl builtin to git, so
  that git-core is perl free

OBS-URL: https://build.opensuse.org/request/show/883834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=261
2021-04-10 13:26:14 +00:00

19 lines
679 B
Diff

--- git-2.31.1/builtin/add.c 2021-03-26 23:03:34.000000000 +0100
+++ git-2.31.1/builtin/add.c 2021-04-08 13:15:09.004425194 +0200
@@ -208,9 +208,14 @@
else if (!git_config_get_bool("feature.experimental", &experimental) &&
experimental)
use_builtin_add_i = 1;
+ else
+ use_builtin_add_i = 1;
}
- if (use_builtin_add_i == 1) {
+ /* SUSE oddity - git-add--interactive is the single remaining perl dependency of
+ * git-core - so we opt to default to the builtin interactive shell and strip it.
+ * Please let us know at https://bugzilla.suse.com/ if there is an issue with this.*/
+ if (use_builtin_add_i != 0) {
enum add_p_mode mode;
if (!patch_mode)