Message ID | pull.972.git.1622884415.gitgitgadget@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | ref-filter: add %(raw:textconv) and %(raw:filters) | expand |
Hi, On 05/06/21 16.13, ZheNing Hu via GitGitGadget wrote: > In order to let git cat-file --batch reuse ref-filter logic, This patch, > %(rest), %(raw:textconv), %(raw:filters) atoms and --rest=<rest> option are > added to ref-filter. > Better say "Add ... atoms and --rest=<rest> option to ref-filter, in order to let git cat-file reuse ref-filter logic." > * %(rest) int the format will be replaced by the <rest> in --rest=<rest>. > * the <rest> in --rest=<rest> can also be used as the <path> for > %(raw:textconv) and %(raw:filters). s/int/in/ Did you mean that %(rest) atom can also be used as <path> for the latter?
Bagas Sanjaya <bagasdotme@gmail.com> 于2021年6月5日周六 下午6:29写道: > > Hi, > > On 05/06/21 16.13, ZheNing Hu via GitGitGadget wrote: > > In order to let git cat-file --batch reuse ref-filter logic, This patch, > > %(rest), %(raw:textconv), %(raw:filters) atoms and --rest=<rest> option are > > added to ref-filter. > > > > Better say "Add ... atoms and --rest=<rest> option to ref-filter, in > order to let git cat-file reuse ref-filter logic." > OK. > > * %(rest) int the format will be replaced by the <rest> in --rest=<rest>. > > * the <rest> in --rest=<rest> can also be used as the <path> for > > %(raw:textconv) and %(raw:filters). > > s/int/in/ > > Did you mean that %(rest) atom can also be used as <path> for the latter? > No. just the <rest> in `--rest=<rest>` will be treated as <path> for %(raw:textconv) and %(raw:filters). > -- > An old man doll... just what I always wanted! - Clara Thanks. -- ZheNing Hu
"ZheNing Hu via GitGitGadget" <gitgitgadget@gmail.com> writes: > The current series is based on 0efed9435 ([GSOC] ref-filter: add %(raw) > atom) I do not have that commit object, but these six patches include the two commits that are %(raw) and %(raw:size), so I'll just discard the old round that wasn't based on the atom-type stuff and queue these six as a single series. As I already said, I am not sure how %(rest) makes any sense outside the context of "cat-file --batch"; I suspect it would make more sense to make it easier to arrange certain placeholders to error out when used in a context where they do not make sense (e.g. use of --rest in "git branch --list").
Junio C Hamano <gitster@pobox.com> 于2021年6月7日周一 下午1:56写道: > > "ZheNing Hu via GitGitGadget" <gitgitgadget@gmail.com> writes: > > > The current series is based on 0efed9435 ([GSOC] ref-filter: add %(raw) > > atom) > > I do not have that commit object, but these six patches include the > two commits that are %(raw) and %(raw:size), so I'll just discard > the old round that wasn't based on the atom-type stuff and queue > these six as a single series. > Well, it is a commit that has not been sent to the mailing list. But it’s okay to treat the new 6 commits as a new patch series. > As I already said, I am not sure how %(rest) makes any sense outside > the context of "cat-file --batch"; I suspect it would make more sense > to make it easier to arrange certain placeholders to error out when > used in a context where they do not make sense (e.g. use of --rest > in "git branch --list"). > I agree. -- ZheNing Hu
"ZheNing Hu via GitGitGadget" <gitgitgadget@gmail.com> writes: > ZheNing Hu (6): > [GSOC] ref-filter: add obj-type check in grab contents > [GSOC] ref-filter: add %(raw) atom > [GSOC] ref-filter: use non-const ref_format in *_atom_parser() > [GSOC] ref-filter: add %(rest) atom and --rest option > [GSOC] ref-filter: teach grab_sub_body_contents() return value and err > [GSOC] ref-filter: add %(raw:textconv) and %(raw:filters) I haven't gotten around looking at anything after the %(rest) one, but https://github.com/git/git/runs/2770688471?check_suite_focus=true seems to tell us that there is "size_t *" vs "ulong *" type confusion, possibly around the textconv thing.
Junio C Hamano <gitster@pobox.com> 于2021年6月8日周二 下午2:42写道: > > "ZheNing Hu via GitGitGadget" <gitgitgadget@gmail.com> writes: > > > ZheNing Hu (6): > > [GSOC] ref-filter: add obj-type check in grab contents > > [GSOC] ref-filter: add %(raw) atom > > [GSOC] ref-filter: use non-const ref_format in *_atom_parser() > > [GSOC] ref-filter: add %(rest) atom and --rest option > > [GSOC] ref-filter: teach grab_sub_body_contents() return value and err > > [GSOC] ref-filter: add %(raw:textconv) and %(raw:filters) > > I haven't gotten around looking at anything after the %(rest) one, > but > > https://github.com/git/git/runs/2770688471?check_suite_focus=true > > seems to tell us that there is "size_t *" vs "ulong *" type > confusion, possibly around the textconv thing. > > ok, I will change it when we use %(raw:textconv) next time. Thanks. -- ZheNing Hu