Kenny Lee Sin Cheong writes:
> If I'm understanding correctly, the problem of checking revisions before
> arg is that an option fed to handle_revision_arg() might die() before getting
> checked as an option in cases where a file with the same name exists?
>
> But doesn't verify_non_filename() alr
On Tue, Mar 17 2015 at 06:16:38 PM, Junio C Hamano wrote:
>
> I also notice that handle_revision_arg() would die() by calling it
> directly or indirectly via verify_non_filename(), etc., but the
> caller actually is expecting it to silently return non-zero when it
> finds an argument that cannot b
Kenny Lee Sin Cheong writes:
> On Tue, Mar 17 2015 at 02:49:48 AM, Junio C Hamano wrote:
>> Junio C Hamano writes:
>>
>> if (try to see if it is a revision or regvision range) {
>> /* if failed ... */
>> if (starts with '-') {
>> do the option
On Tue, Mar 17 2015 at 02:49:48 AM, Junio C Hamano wrote:
> Junio C Hamano writes:
>
> if (try to see if it is a revision or regvision range) {
> /* if failed ... */
> if (starts with '-') {
> do the option thing;
> c
Junio C Hamano writes:
>> @@ -1499,6 +1500,13 @@ int handle_revision_arg(const char *arg_, struct
>> rev_info *revs, int flags, unsi
>> next = head_by_default;
>> if (dotdot == arg)
>> this = head_by_default;
>> +/* Allows -.. a
Kenny Lee Sin Cheong writes:
> diff --git a/revision.c b/revision.c
> index 7778bbd..a79b443 100644
> --- a/revision.c
> +++ b/revision.c
> @@ -1490,6 +1490,7 @@ int handle_revision_arg(const char *arg_, struct
> rev_info *revs, int flags, unsi
> int symmetric = *next == '.';
>
Currently it is not be possible to do something like "git checkout
master && git checkout next && git log -.." to see what master has on
top of master.
Allows use of the revision range such as ..- or -.. to see
what HEAD has on top of or vice versa, respectively.
Also allows use of symmetric dif
7 matches
Mail list logo