Re: [PATCH 2/2] bisect: warn if given dubious tag or branch as rev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christian Couder
Date: Tuesday, April 15, 2008 - 12:05 am

Le mardi 15 avril 2008, Junio C Hamano a écrit :

Yes, and there are also some "git bisect start good $foo bad $bar" in his 
transcript. So perhaps we should warn only on "bad" good" and maybe "skip".


I think Ingo uses git and git bisect very often, and still he made mistakes 
that could have resulted in unwanted behavior with nothing to help 
understand what happened, if he had tags or branches named "good" or "bad".

So it's not for "bad boys" or forcing good naming, but really preventing 
mistakes.

In bisect_autostart we also have:

		echo >&2 'You need to start by "git bisect start"'
		if test -t 0
		then
			echo >&2 -n 'Do you want me to do it for you [Y/n]? '
			read yesno
			case "$yesno" in
			[Nn]*)
				exit ;;
			esac
			bisect_start
		else
			exit 1
		fi

to make sure that the users know what happens, and help them do what they 
want. If you prefer I can add something like the above to make sure that 
the user knows what he is doing.

Thanks,
Christian.




--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 2/2] bisect: warn if given dubious tag or branc ..., Christian Couder, (Tue Apr 15, 12:05 am)