Skip to content

Fix some constness errors in fetch-pack and parseopt conversion

Nguyễn Thái Ngọc Duy git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cmd_fetch_pack(): declare dest to be constbuiltin/fetch-pack.c+4 -30 replies
2/3fetch-pack: use parse_options()builtin/fetch-pack.c fetch-pack.h+49 -810 replies
3/3cmd_fetch_pack(): fix constness problem and memory leakbuiltin/fetch-pack.c+17 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Fix some constness errors in fetch-pack and parseopt conversion
Quoted 13 lines · Michael Haggerty
Quoted 12 lines · Nguyen Thai Ngoc Duy
Quoted 9 lines · On Wed, May 2, 2012 at 5:40 PM,<[email protected]> wrote:
               const char *arg = argv[i];
(quoted diff) +0 -5
-               if (*arg == '-') {
-                       if (!prefixcmp(arg, "--upload-pack=")) {
-                               args.uploadpack = arg + 14;
-                               continue;
-                       }
[...]
Quoted 7 lines
Quoted 3 lines

Ugh, perhaps you can convert the above to parse_options() too while you're making changes in this part? You can say no, I'll do it (my itch anyway).

Sorry, I have too many balls in the air already. But feel free to veto my patch if my changes make it harder to switch to parse_options().

No problem. My new patch may slow down your patches to master though.

Michael Haggerty (2):
cmd_fetch_pack(): declare dest to be const cmd_fetch_pack(): fix constness problem and memory leak

Nguyễn Thái Ngọc Duy (1):
fetch-pack: use parse_options()

 builtin/fetch-pack.c |  138 ++++++++++++++++++++------------------------------
 fetch-pack.h         |   20 ++++----
 2 files changed, 65 insertions(+), 93 deletions(-)
Signature · 1 line
1.7.8.36.g69ee2