public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH 1/2] git-bisect.sh : create a file if the bisection is in old/new mode, named "BISECT_OLDNEWMODE", so it can easily be seen outside the program without having to read BISECT_TERMS. This will have to be changed in further versions if new terms are introduced.
@ 2015-06-05 16:34 Louis Stuber
  2015-06-05 16:34 ` [PATCH 2/2] Fix git rev-list --bisect and git bisect visualize when the bisection is done in old/new mode Louis Stuber
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Louis Stuber @ 2015-06-05 16:34 UTC (permalink / raw)
  To: git
  Cc: remi.galan-alfonso, remi.lespinet, matthieu.moy, guillaume.pages,
	antoine.delaite, j_franck7, valentinduperray, thomasxnguy,
	lucienkong, chriscool, Louis Stuber


Signed-off-by: Louis Stuber <stuberl@ensimag•grenoble-inp.fr>
Signed-off-by: Antoine Delaite <antoine.delaite@ensimag•grenoble-inp.fr>
---
 git-bisect.sh |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/git-bisect.sh b/git-bisect.sh
index 109bd65..d3d19cb 100644
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -183,6 +183,10 @@ bisect_start() {
 	then
 		echo "$BISECT_BAD" >"$GIT_DIR/BISECT_TERMS" &&
 		echo "$BISECT_GOOD" >>"$GIT_DIR/BISECT_TERMS"
+		if test "$BISECT_BAD" = "new"
+		then
+			echo "" > "$GIT_DIR/BISECT_OLDNEWMODE"
+		fi
 	fi &&
 	echo "git bisect start$orig_args" >>"$GIT_DIR/BISECT_LOG" || exit
 	#
@@ -416,6 +420,7 @@ bisect_clean_state() {
 	rm -f "$GIT_DIR/BISECT_NAMES" &&
 	rm -f "$GIT_DIR/BISECT_RUN" &&
 	rm -f "$GIT_DIR/BISECT_TERMS" &&
+	rm -f "$GIT_DIR/BISECT_OLDNEWMODE" &&
 	# Cleanup head-name if it got left by an old version of git-bisect
 	rm -f "$GIT_DIR/head-name" &&
 	git update-ref -d --no-deref BISECT_HEAD &&
@@ -544,7 +549,8 @@ check_and_set_terms () {
 			if test ! -s "$GIT_DIR/BISECT_TERMS"
 			then
 				echo "new" >"$GIT_DIR/BISECT_TERMS" &&
-				echo "old" >>"$GIT_DIR/BISECT_TERMS"
+				echo "old" >>"$GIT_DIR/BISECT_TERMS" &&
+				echo "" > "$GIT_DIR/BISECT_OLDNEWMODE"
 			fi
 			BISECT_BAD="new"
 			BISECT_GOOD="old" ;;
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-08 11:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-05 16:34 [PATCH 1/2] git-bisect.sh : create a file if the bisection is in old/new mode, named "BISECT_OLDNEWMODE", so it can easily be seen outside the program without having to read BISECT_TERMS. This will have to be changed in further versions if new terms are introduced Louis Stuber
2015-06-05 16:34 ` [PATCH 2/2] Fix git rev-list --bisect and git bisect visualize when the bisection is done in old/new mode Louis Stuber
2015-06-05 20:24   ` Eric Sunshine
2015-06-05 20:03 ` [PATCH 1/2] git-bisect.sh : create a file if the bisection is in old/new mode, named "BISECT_OLDNEWMODE", so it can easily be seen outside the program without having to read BISECT_TERMS. This will have to be changed in further versions if new terms are introduced Eric Sunshine
2015-06-08 11:48   ` Matthieu Moy
2015-06-05 20:24 ` Christian Couder
     [not found]   ` <1179544255.257552.1433703835857.JavaMail.zimbra@ensimag.grenoble-inp.fr>
2015-06-07 19:06     ` Louis-Alexandre Stuber
2015-06-08 11:54     ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox