* Re: [PATCH][GSoC] revision: forbid --graph and --no-walk usage
[not found] <1425582632-28273-1-git-send-email-akshayaurora@yahoo.com>
@ 2015-03-06 5:08 ` Akshay Aurora
2015-03-06 8:37 ` Max Kirillov
0 siblings, 1 reply; 7+ messages in thread
From: Akshay Aurora @ 2015-03-06 5:08 UTC (permalink / raw)
To: git; +Cc: Akshay Aurora
Not sure, why this mail is not showing on Gmane.
I used git to send the email, and tested it by sending the patch to
myself before sending it to the list.
On Fri, Mar 6, 2015 at 12:40 AM, Akshay Aurora <akshayaurora@yahoo.com> wrote:
> Signed-off-by: Akshay Aurora <akshayaurora@yahoo.com>
> ---
> This is my first patch for a GSoC Microproject, would be great to have your feedback.
>
> revision.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/revision.c b/revision.c
> index bd027bc..d578652 100644
> --- a/revision.c
> +++ b/revision.c
> @@ -2248,7 +2248,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
> */
> if (revs->reverse && revs->graph)
> die("cannot combine --reverse with --graph");
> -
> + if (revs->no_walk && revs->graph)
> + die("cannot combine --no-walk with --graph");
> if (revs->reflog_info && revs->graph)
> die("cannot combine --walk-reflogs with --graph");
> if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
> --
> 2.3.1
>
--
AA
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH][GSoC] revision: forbid --graph and --no-walk usage
@ 2015-03-06 5:13 Akshay Aurora
2015-03-06 18:30 ` Junio C Hamano
0 siblings, 1 reply; 7+ messages in thread
From: Akshay Aurora @ 2015-03-06 5:13 UTC (permalink / raw)
To: git; +Cc: Akshay Aurora
Signed-off-by: Akshay Aurora <akshayaurora@yahoo.com>
---
This is my first patch for a GSoC Microproject, would be great to have your feedback.
revision.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/revision.c b/revision.c
index bd027bc..d578652 100644
--- a/revision.c
+++ b/revision.c
@@ -2248,7 +2248,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
*/
if (revs->reverse && revs->graph)
die("cannot combine --reverse with --graph");
-
+ if (revs->no_walk && revs->graph)
+ die("cannot combine --no-walk with --graph");
if (revs->reflog_info && revs->graph)
die("cannot combine --walk-reflogs with --graph");
if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
--
2.3.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH][GSoC] revision: forbid --graph and --no-walk usage
2015-03-06 5:08 ` Akshay Aurora
@ 2015-03-06 8:37 ` Max Kirillov
2015-03-06 12:11 ` Akshay Aurora
0 siblings, 1 reply; 7+ messages in thread
From: Max Kirillov @ 2015-03-06 8:37 UTC (permalink / raw)
To: Akshay Aurora; +Cc: Git Mailing List
On Fri, Mar 6, 2015 at 7:08 AM, Akshay Aurora <akshayaurora@yahoo.com> wrote:
> Not sure, why this mail is not showing on Gmane.
> I used git to send the email, and tested it by sending the patch to
> myself before sending it to the list.
Gmail knows: "Why is this message in Spam? It has a from address in
yahoo.com but has failed yahoo.com's required tests for
authentication. Learn more" Probably filtering settings are less
strict.
I guess you should use authenticated SMTP thought your email hoster,
yahoo here in git-send-email (something like --smtp-server and
--smtp-user options, it will ask for password interactively) to avoid
it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][GSoC] revision: forbid --graph and --no-walk usage
2015-03-06 8:37 ` Max Kirillov
@ 2015-03-06 12:11 ` Akshay Aurora
0 siblings, 0 replies; 7+ messages in thread
From: Akshay Aurora @ 2015-03-06 12:11 UTC (permalink / raw)
To: Max Kirillov; +Cc: Git Mailing List
Thanks for replying. I'll try sending the patch directly using gmail
smtp servers next time.
Going by the description of the options. I doubt --graph and --no-walk
would ever make sense together.
So my patch forbids these two options together for all commands
calling setup_revisions(). And isn't specific to just `git log`.
Also, seeing other patches to this microproject. I think I should also
update Documentation for rev-list-options.
Do you think we need a test for this? Would a test using only `git
log` be suffice?
On Fri, Mar 6, 2015 at 2:07 PM, Max Kirillov <max@max630.net> wrote:
> On Fri, Mar 6, 2015 at 7:08 AM, Akshay Aurora <akshayaurora@yahoo.com> wrote:
>> Not sure, why this mail is not showing on Gmane.
>> I used git to send the email, and tested it by sending the patch to
>> myself before sending it to the list.
>
> Gmail knows: "Why is this message in Spam? It has a from address in
> yahoo.com but has failed yahoo.com's required tests for
> authentication. Learn more" Probably filtering settings are less
> strict.
>
> I guess you should use authenticated SMTP thought your email hoster,
> yahoo here in git-send-email (something like --smtp-server and
> --smtp-user options, it will ask for password interactively) to avoid
> it.
--
AA
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][GSoC] revision: forbid --graph and --no-walk usage
2015-03-06 5:13 [PATCH][GSoC] revision: forbid --graph and --no-walk usage Akshay Aurora
@ 2015-03-06 18:30 ` Junio C Hamano
2015-03-06 20:57 ` Akshay Aurora
0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2015-03-06 18:30 UTC (permalink / raw)
To: Akshay Aurora; +Cc: git
Akshay Aurora <akshayaurora@yahoo.com> writes:
> Signed-off-by: Akshay Aurora <akshayaurora@yahoo.com>
> ---
> This is my first patch for a GSoC Microproject, would be great to have your feedback.
>
> revision.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/revision.c b/revision.c
> index bd027bc..d578652 100644
> --- a/revision.c
> +++ b/revision.c
> @@ -2248,7 +2248,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
> */
> if (revs->reverse && revs->graph)
> die("cannot combine --reverse with --graph");
> -
> + if (revs->no_walk && revs->graph)
> + die("cannot combine --no-walk with --graph");
> if (revs->reflog_info && revs->graph)
> die("cannot combine --walk-reflogs with --graph");
> if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
Needs a new test to make sure "log --no-walk --graph" is rejected,
and also you need to make sure all other existing tests that used to
pass before this change still pass.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][GSoC] revision: forbid --graph and --no-walk usage
2015-03-06 18:30 ` Junio C Hamano
@ 2015-03-06 20:57 ` Akshay Aurora
2015-03-08 10:13 ` Matthieu Moy
0 siblings, 1 reply; 7+ messages in thread
From: Akshay Aurora @ 2015-03-06 20:57 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Mailing List
Thanks Junio. Working on v2 for this patch.
On Sat, Mar 7, 2015 at 12:00 AM, Junio C Hamano <gitster@pobox.com> wrote:
> Akshay Aurora <akshayaurora@yahoo.com> writes:
>
>> Signed-off-by: Akshay Aurora <akshayaurora@yahoo.com>
>> ---
>> This is my first patch for a GSoC Microproject, would be great to have your feedback.
>>
>> revision.c | 3 ++-
>> 1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/revision.c b/revision.c
>> index bd027bc..d578652 100644
>> --- a/revision.c
>> +++ b/revision.c
>> @@ -2248,7 +2248,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, struct s
>> */
>> if (revs->reverse && revs->graph)
>> die("cannot combine --reverse with --graph");
>> -
>> + if (revs->no_walk && revs->graph)
>> + die("cannot combine --no-walk with --graph");
>> if (revs->reflog_info && revs->graph)
>> die("cannot combine --walk-reflogs with --graph");
>> if (!revs->reflog_info && revs->grep_filter.use_reflog_filter)
>
> Needs a new test to make sure "log --no-walk --graph" is rejected,
> and also you need to make sure all other existing tests that used to
> pass before this change still pass.
>
--
- Akshay Aurora
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH][GSoC] revision: forbid --graph and --no-walk usage
2015-03-06 20:57 ` Akshay Aurora
@ 2015-03-08 10:13 ` Matthieu Moy
0 siblings, 0 replies; 7+ messages in thread
From: Matthieu Moy @ 2015-03-08 10:13 UTC (permalink / raw)
To: Akshay Aurora; +Cc: Junio C Hamano, Git Mailing List
Akshay Aurora <akshayaurora2008@gmail.com> writes:
> Thanks Junio. Working on v2 for this patch.
>
> On Sat, Mar 7, 2015 at 12:00 AM, Junio C Hamano <gitster@pobox.com> wrote:
Please, don't top-post on this list.
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-03-08 10:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-06 5:13 [PATCH][GSoC] revision: forbid --graph and --no-walk usage Akshay Aurora
2015-03-06 18:30 ` Junio C Hamano
2015-03-06 20:57 ` Akshay Aurora
2015-03-08 10:13 ` Matthieu Moy
[not found] <1425582632-28273-1-git-send-email-akshayaurora@yahoo.com>
2015-03-06 5:08 ` Akshay Aurora
2015-03-06 8:37 ` Max Kirillov
2015-03-06 12:11 ` Akshay Aurora
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).