Fix some constness errors in fetch-pack and parseopt conversion
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | cmd_fetch_pack(): declare dest to be constbuiltin/ | +4 | 0 replies | |
| 2/3 | fetch-pack: use parse_options()builtin/ fetch-pack.h | +49 | 0 replies | |
| 3/3 | cmd_fetch_pack(): fix constness problem and memory leakbuiltin/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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