Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-17 Thread Matthieu Moy
Antoine Delaite writes: > Matthieu Moy writes: > >>> # terms_defined is 0 when the user did not define the terms explicitely # yet. This is the case when running 'git bisect start bad_rev good_rev' # before we see an explicit reference to a term. terms_defined=0 >>> >>> Th

[PATCH v2 7/7] bisect: allows any terms set by user

2015-06-17 Thread Antoine Delaite
Matthieu Moy writes: >> >>># terms_defined is 0 when the user did not define the terms explicitely >>># yet. This is the case when running 'git bisect start bad_rev good_rev' >>># before we see an explicit reference to a term. >>>terms_defined=0 >> >> The thing is: >> 'git bisect reset >

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-17 Thread Matthieu Moy
Antoine Delaite writes: > Matthieu Moy writes: > >># terms_defined is 0 when the user did not define the terms explicitely >># yet. This is the case when running 'git bisect start bad_rev good_rev' >># before we see an explicit reference to a term. >>terms_defined=0 > > The thing is: > 'git bise

[PATCH v2 7/7] bisect: allows any terms set by user

2015-06-16 Thread Antoine Delaite
Matthieu Moy writes: ># terms_defined is 0 when the user did not define the terms explicitely ># yet. This is the case when running 'git bisect start bad_rev good_rev' ># before we see an explicit reference to a term. >terms_defined=0 The thing is: 'git bisect reset git bisect new HEAD (autostar

[PATCH v2 7/7] bisect: allows any terms set by user

2015-06-16 Thread Antoine Delaite
Matthieu Moy writes: >I would say "for the current bisection", i.e. > >$ git bisect start >$ git bisect terms foo bar # Scope starts here >... >The first 'bar' commit is deadbeef. # Scope ends here > >$ git bisect terms foo bar >You need to start by "git bisect start" >Do you want me to

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-15 Thread Junio C Hamano
Matthieu Moy writes: > I would say terms_defined is OK even if only the first patches get > merged. The reason why you need this variable is because you need to > know whether the terms have been defined or not, and to me that's the > most important. Well said. Thanks. > > I'd suggest somethin

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-15 Thread Matthieu Moy
Antoine Delaite writes: > To submit a v3 I would need answer about how we rebase the commit > history and what do we do to simplify the life of the user with the > terms (see my last mails). > I was thinking of: > -a config variable that would say :"as long as I don't reset keep > the terms

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-15 Thread Matthieu Moy
Antoine Delaite writes: > Matthieu Moy writes: > >>> +if test -s "$GIT_DIR/TERMS_DEFINED" >>> +then >>> +terms_defined=1 >>> +get_terms >>> +rm -rf "$GIT_DIR/TERMS_DEFINED" >> >>I don't understand why you need to delete this file. I

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-15 Thread Matthieu Moy
Antoine Delaite writes: > Louis Stuber writes: > >>Matthieu Moy writes: >> >>> Modifying in PATCH 7 some code that you introduced in PATCH 3 is >>> suspicious. Is there any reason you did not name the variable >>> "terms_defined" in the first place? (i.e. squash this hunk and the other >>

[PATCH v2 7/7] bisect: allows any terms set by user

2015-06-14 Thread Antoine Delaite
This message's goal is to explained where am I on the bisect functions. -git bisect replay now work with any terms. -I took account of most of the last reviews (coding style, double sed ...) -'git bisect terms' without arguments now display the current terms -bisect_terms : if a bisection ha

[PATCH v2 7/7] bisect: allows any terms set by user

2015-06-14 Thread Antoine Delaite
Matthieu Moy writes: >> +if test -s "$GIT_DIR/TERMS_DEFINED" >> +then >> +terms_defined=1 >> +get_terms >> +rm -rf "$GIT_DIR/TERMS_DEFINED" > >I don't understand why you need to delete this file. I did not review >thoroughly so there

[PATCH v2 7/7] bisect: allows any terms set by user

2015-06-14 Thread Antoine Delaite
Louis Stuber writes: >Matthieu Moy writes: > >> Modifying in PATCH 7 some code that you introduced in PATCH 3 is >> suspicious. Is there any reason you did not name the variable >> "terms_defined" in the first place? (i.e. squash this hunk and the other >> instance of start_bad_good into P

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-14 Thread Louis-Alexandre Stuber
Matthieu Moy writes: > Modifying in PATCH 7 some code that you introduced in PATCH 3 is > suspicious. Is there any reason you did not name the variable > "terms_defined" in the first place? (i.e. squash this hunk and the other > instance of start_bad_good into PATCH 3) > > (Whether this is a reth

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-11 Thread Matthieu Moy
Antoine Delaite writes: > - # start_bad_good is used to detect if we did a > - # 'git bisect start bad_rev good_rev' > - start_bad_good=0 > + # terms_defined is used to detect if we did a > + # 'git bisect start bad_rev good_rev' or if the user > + # defined his own terms

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-11 Thread Junio C Hamano
Matthieu Moy writes: > Junio C Hamano writes: > >> Junio C Hamano writes: >> >>> +bisect_terms () { >>> + test $# -eq 2 || >>> + die "You need to give me at least two arguments" >>> + >>> + if ! test -s "$GIT_DIR/BISECT_START" >>> + then >>> + echo $1 >"$GIT_DIR/BISECT_TERMS"

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-11 Thread Junio C Hamano
Matthieu Moy writes: > Junio C Hamano writes: > >> Antoine Delaite writes: >> >>> -USAGE='[help|start|bad|good|new|old|skip|next|reset|visualize|replay|log|run]' >>> +USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|replay|log|run]' >> >> I think this patch makes the whole se

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-11 Thread Matthieu Moy
Junio C Hamano writes: > Junio C Hamano writes: > >> +bisect_terms () { >> +test $# -eq 2 || >> +die "You need to give me at least two arguments" >> + >> +if ! test -s "$GIT_DIR/BISECT_START" >> +then >> +echo $1 >"$GIT_DIR/BISECT_TERMS" && >> +echo $2 >>"

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-11 Thread Matthieu Moy
Junio C Hamano writes: > Antoine Delaite writes: > >> -USAGE='[help|start|bad|good|new|old|skip|next|reset|visualize|replay|log|run]' >> +USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|replay|log|run]' > > I think this patch makes the whole series go in the right direction.

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-10 Thread Junio C Hamano
Junio C Hamano writes: > I like this change very much; it removes the mysteriously misnamed > start-bad-good variable (because you do not really _care_ that > 'start' was what implicitly decided that good/bad pair is the term > we use in this session; what you care is that the terms are already >

Re: [PATCH v2 7/7] bisect: allows any terms set by user

2015-06-10 Thread Junio C Hamano
Antoine Delaite writes: > -USAGE='[help|start|bad|good|new|old|skip|next|reset|visualize|replay|log|run]' > +USAGE='[help|start|bad|good|new|old|terms|skip|next|reset|visualize|replay|log|run]' I think this patch makes the whole series go in the right direction. I wonder if you can skip the "we

[PATCH v2 7/7] bisect: allows any terms set by user

2015-06-10 Thread Antoine Delaite
Introduction of the git bisect terms function. The user can set its own terms. List of known commands not available : `git bisect replay` `git bisect terms term1 term2 then git bisect start bad_rev good_rev` Signed-off-by: Antoine Delaite Signed-off-by: Louis Stuber --- Documentation/git-bisec