[PATCH v2/GSoC/RFC] fetch: git fetch --deepen

2015-03-22 Thread Dongcan Jiang
[1] http://article.gmane.org/gmane.comp.version-control.git/212950 [2] http://article.gmane.org/gmane.comp.version-control.git/265050 Helped-by: Duy Nguyen Helped-By: Eric Sunshine Helped-By: Junio C Hamano Signed-off-by: Dongcan Jiang --- -Background- At present the command "git-fetch" has o

[PATCH v5/GSoC/MICRO] revision: forbid combining --graph and --no-walk

2015-03-17 Thread Dongcan Jiang
git/216083 [2]: http://article.gmane.org/gmane.comp.version-control.git/264950 [3]: http://article.gmane.org/gmane.comp.version-control.git/265107 Helped-By: Eric Sunshine Helped-By: René Scharfe Helped-By: Junio C Hamano Signed-off-by: Dongcan Jiang --- Documentation/rev-list-options.txt | 2 ++

Re: [PATCH/GSoC/RFC] fetch: git fetch --deepen

2015-03-17 Thread Dongcan Jiang
t it breaks "git clone --depth" (or "git fetch > --depth") for all existing git installations. Oh, thank you for pointing out this. And sorry Junio. I misunderstood what you said. I haven't realized the problem of existing git server. You've reminded me of the impor

Re: [PATCH/GSoC/RFC] fetch: git fetch --deepen

2015-03-16 Thread Dongcan Jiang
;req_buf); > state_len = req_buf.len; If the user wants "deepen", he should send a "depth_deepen" signal as well as "depth N". When the upload-pack service in this patch receive "depth_deepen" and "depth N", it collects N more commits ah

Re: [PATCH/GSoC/RFC] fetch: git fetch --deepen

2015-03-16 Thread Dongcan Jiang
e mentioned, which would be better to take in next stage. Thanks, Dongcan 2015-03-14 18:56 GMT+08:00 Duy Nguyen : > On Fri, Mar 13, 2015 at 8:04 PM, Dongcan Jiang > wrote: >> @@ -317,7 +318,7 @@ static int find_common(struct fetch_pack_args *args, >> if (is_reposit

Re: [PATCH/GSoC/RFC] fetch: git fetch --deepen

2015-03-16 Thread Dongcan Jiang
Hi Eric, Sorry for my late response. Thank you for your suggestions! I will try to use them in my next patch version. Best Regards, Dongcan 2015-03-14 3:42 GMT+08:00 Eric Sunshine : > On Fri, Mar 13, 2015 at 9:04 AM, Dongcan Jiang > wrote: >> This patch is just for discusstio

Re: [PATCH v3] log: forbid log --graph --no-walk

2015-03-14 Thread Dongcan Jiang
Because "revs->no_walk" gets set when it comes to "git show". You can find more information on [1]. [1] http://article.gmane.org/gmane.comp.version-control.git/264921 2015-03-15 9:24 GMT+08:00 Manos Pitsidianakis : > On 03/15/2015 03:08 AM, Dongcan Jiang wrote: >>

Re: [PATCH v3] log: forbid log --graph --no-walk

2015-03-14 Thread Dongcan Jiang
est_must_fail git log --graph --no-walk > +' > + > test_done > -- > 2.1.4 > > > > -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majord...@vger.kernel.org > More majordomo info at http://vger.kernel.o

[PATCH/GSoC/RFC] fetch: git fetch --deepen

2015-03-13 Thread Dongcan Jiang
[2] http://article.gmane.org/gmane.comp.version-control.git/265050 Helped-by: Duy Nguyen Signed-off-by: Dongcan Jiang --- builtin/fetch.c | 5 - fetch-pack.c | 3 ++- fetch-pack.h | 1 + t/t5510-fetch.sh | 11 +++ transport.c | 4 transport.h | 4 u

[PATCH v4/GSoC/MICRO] revision: forbid combining --graph and --no-walk

2015-03-10 Thread Dongcan Jiang
git/216083 [2]: http://article.gmane.org/gmane.comp.version-control.git/264950 [3]: http://article.gmane.org/gmane.comp.version-control.git/265107 Helped-By: Eric Sunshine Helped-By: René Scharfe Helped-By: Junio C Hamano Signed-off-by: Dongcan Jiang --- Documentation/rev-list-options.txt | 2 ++

[PATCH v3/GSoC/MICRO] revision: forbid combining --graph and --no-walk

2015-03-08 Thread Dongcan Jiang
trol.git/264950 [3]: http://article.gmane.org/gmane.comp.version-control.git/265107 Helped-By: Eric Sunshine Helped-By: René Scharfe Helped-By: Junio C Hamano Signed-off-by: Dongcan Jiang --- Documentation/rev-list-options.txt | 2 ++ builtin/log.c | 1 + revision.c

Re: [GSoC/RFC] Ideas on git fetch --deepen

2015-03-08 Thread Dongcan Jiang
It is really helpful. Thanks a lot! 2015-03-08 17:34 GMT+08:00 Duy Nguyen : > On Sun, Mar 8, 2015 at 3:57 PM, Dongcan Jiang wrote: >> Hi, all >> >> After digging into how "git fetch" works, I have found that my previous >> understanding was too rash. I&#x

Re: [GSoC/RFC] Ideas on git fetch --deepen

2015-03-08 Thread Dongcan Jiang
tting me know whether I am in the right way. Thanks. [1] http://article.gmane.org/gmane.comp.version-control.git/212950 2015-03-07 14:32 GMT+08:00 Dongcan Jiang : > Hi all, > > My name is Dongcan Jiang. I am studying for my Master Degree at Peking > University > majoring i

[GSoC/RFC] Ideas on git fetch --deepen

2015-03-06 Thread Dongcan Jiang
Hi all, My name is Dongcan Jiang. I am studying for my Master Degree at Peking University majoring in Computer Science. I have been using Git to manage my projects for about half a year. It's really exciting that Git has been helping me make revision control much more convenient. Therefore,

[PATCH v2/GSoC/MICRO] revision: forbid combining --graph and --no-walk

2015-03-06 Thread Dongcan Jiang
rsion-control.git/216083 [2]: http://article.gmane.org/gmane.comp.version-control.git/264950 Signed-off-by: Dongcan Jiang Thanks-to: Eric Sunshine, René Scharfe, Junio C Hamano --- Documentation/rev-list-options.txt | 2 ++ builtin/log.c | 1 + revis

Re: [PATCH] [GSoC][MICRO] Forbid "log --graph --no-walk"

2015-03-06 Thread Dongcan Jiang
how --stat". That's why I add the parameter "revs->cmd_is_log" as judgement. Of course, it causes the limitation you've mentioned. I will consider better solution in the next patch edition as soon as possible. Best Regards Dongcan 2015-03-06 17:56 GMT+08:00 Eric Sunshine : >

[PATCH] [GSoC][MICRO] Forbid "log --graph --no-walk"

2015-03-06 Thread Dongcan Jiang
-by: Dongcan Jiang --- Documentation/rev-list-options.txt | 2 ++ builtin/log.c | 1 + revision.c | 4 revision.h | 3 +++ 4 files changed, 10 insertions(+) diff --git a/Documentation/rev-list-options.txt b/Documentation