MCPcopy Index your code
hub / github.com/git/git / write_strategy_opts

Function write_strategy_opts

sequencer.c:3301–3312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3299}
3300
3301static void write_strategy_opts(struct replay_opts *opts)
3302{
3303 struct strbuf buf = STRBUF_INIT;
3304
3305 /*
3306 * Quote strategy options so that they can be read correctly
3307 * by split_cmdline().
3308 */
3309 quote_cmdline(&buf, opts->xopts.v);
3310 write_file(rebase_path_strategy_opts(), "%s\n", buf.buf);
3311 strbuf_release(&buf);
3312}
3313
3314int write_basic_state(struct replay_opts *opts, const char *head_name,
3315 struct commit *onto, const struct object_id *orig_head)

Callers 1

write_basic_stateFunction · 0.85

Calls 3

quote_cmdlineFunction · 0.85
write_fileFunction · 0.85
strbuf_releaseFunction · 0.85

Tested by

no test coverage detected