From d28559ba2b11689010511bb4a831084fb2ec6341 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Sat, 11 Oct 2014 09:39:50 +0400 Subject: [PATCH] =?UTF-8?q?ajout=20de=20l'option=20-A=20=C3=A0=20pci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/ulib/.ulibver | 2 +- lib/ulib/vcs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ulib/.ulibver b/lib/ulib/.ulibver index 16b350f..cd5ab4d 100644 --- a/lib/ulib/.ulibver +++ b/lib/ulib/.ulibver @@ -1 +1 @@ -003006001 +003007000 diff --git a/lib/ulib/vcs b/lib/ulib/vcs index b6d1938..a24b40e 100644 --- a/lib/ulib/vcs +++ b/lib/ulib/vcs @@ -363,10 +363,11 @@ function git_mkdir() { git mkdir "$@" } function git_commit() { - local all=auto push=auto nopush args + local allnew all=auto push=auto nopush args normyesval nopush "$UTOOLS_NOPUSH" [ -n "$nopush" ] && push= parse_opts + "${PRETTYOPTS[@]}" \ + -A,--all-new allnew=1 \ -a,--all all=1 \ -c,--cached all= \ -p,--push push=1 \ @@ -376,6 +377,11 @@ function git_commit() { return 1 } + if [ -n "$allnew" ]; then + git add -A + all= + fi + local message="$1"; shift local -a cmd cmd=(git commit)