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

2015-03-22 Thread Dongcan Jiang
-control.git/265050 Helped-by: Duy Nguyen pclo...@gmail.com Helped-By: Eric Sunshine sunsh...@sunshineco.com Helped-By: Junio C Hamano gits...@pobox.com Signed-off-by: Dongcan Jiang dongcan.ji...@gmail.com --- -Background- At present the command git-fetch has one option depth which deepens

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

2015-03-18 Thread Dongcan Jiang
/gmane.comp.version-control.git/264950 [3]: http://article.gmane.org/gmane.comp.version-control.git/265107 Helped-By: Eric Sunshine sunsh...@sunshineco.com Helped-By: René Scharfe l@web.de Helped-By: Junio C Hamano gits...@pobox.com Signed-off-by: Dongcan Jiang dongcan.ji...@gmail.com --- Documentation/rev

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

2015-03-17 Thread Dongcan Jiang
misunderstood what you said. I haven't realized the problem of existing git server. You've reminded me of the importance of compatibility. Thank you! 2015-03-17 18:44 GMT+08:00 Duy Nguyen pclo...@gmail.com: On Mon, Mar 16, 2015 at 11:10 PM, Dongcan Jiang dongcan.ji...@gmail.com wrote: Hi Duy, Sorry

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

2015-03-16 Thread Dongcan Jiang
strtol() to parse NUM and it would accept the leading + instead of barfing out. So old clients would mistakes --deepen as --depth, not good. And it even accepts base 8 and 16!! We should fix this. -- Duy -- 江东灿(Dongcan Jiang) Team of Search Engine Web Mining School of Electronic Engineering

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

2015-03-16 Thread Dongcan Jiang
as well as depth N. When the upload-pack service in this patch receive depth_deepen and depth N, it collects N more commits ahead of the shallow commit and send back to the caller. Thanks, Dongcan 2015-03-14 13:35 GMT+08:00 Junio C Hamano gits...@pobox.com: Dongcan Jiang dongcan.ji...@gmail.com

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 sunsh...@sunshineco.com: On Fri, Mar 13, 2015 at 9:04 AM, Dongcan Jiang dongcan.ji...@gmail.com wrote

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 epi...@norn.io: On 03/15/2015 03:08 AM, Dongcan Jiang wrote: it seems that your patch

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

2015-03-14 Thread Dongcan Jiang
/majordomo-info.html -- 江东灿(Dongcan Jiang) Team of Search Engine Web Mining School of Electronic Engineering Computer Science Peking University, Beijing, 100871, P.R.China -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More

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

2015-03-13 Thread Dongcan Jiang
Signed-off-by: Dongcan Jiang dongcan.ji...@gmail.com --- builtin/fetch.c | 5 - fetch-pack.c | 3 ++- fetch-pack.h | 1 + t/t5510-fetch.sh | 11 +++ transport.c | 4 transport.h | 4 upload-pack.c| 15 +++ 7 files changed, 37 insertions

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

2015-03-10 Thread Dongcan Jiang
/gmane.comp.version-control.git/264950 [3]: http://article.gmane.org/gmane.comp.version-control.git/265107 Helped-By: Eric Sunshine sunsh...@sunshineco.com Helped-By: René Scharfe l@web.de Helped-By: Junio C Hamano gits...@pobox.com Signed-off-by: Dongcan Jiang dongcan.ji...@gmail.com --- Documentation/rev

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

2015-03-08 Thread Dongcan Jiang
it mean that we have to change the behavior of git fetch --depth? I hope you can give me some comments or suggestions, letting 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 dongcan.ji

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 pclo...@gmail.com: On Sun, Mar 8, 2015 at 3:57 PM, Dongcan Jiang dongcan.ji...@gmail.com wrote: Hi, all After digging into how git fetch works, I have found that my previous understanding was too rash. I'm sorry

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

2015-03-08 Thread Dongcan Jiang
://article.gmane.org/gmane.comp.version-control.git/265107 Helped-By: Eric Sunshine sunsh...@sunshineco.com Helped-By: René Scharfe l@web.de Helped-By: Junio C Hamano gits...@pobox.com Signed-off-by: Dongcan Jiang dongcan.ji...@gmail.com --- Documentation/rev-list-options.txt | 2 ++ builtin/log.c

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

2015-03-06 Thread Dongcan Jiang
-by: Dongcan Jiang dongcan.ji...@gmail.com --- 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

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

2015-03-06 Thread Dongcan Jiang
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 sunsh...@sunshineco.com: On Fri, Mar 6, 2015 at 3:55 AM, Dongcan Jiang dongcan.ji...@gmail.com wrote: Forbid log --graph --no-walk Style: drop

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

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

[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, I am