am_path           203 builtin/am.c   	return write_file(am_path(state, name), "%s", string);
am_path           209 builtin/am.c   	return write_file(am_path(state, name), "%d", value);
am_path           243 builtin/am.c   	if (lstat(am_path(state, "last"), &st) || !S_ISREG(st.st_mode))
am_path           245 builtin/am.c   	if (lstat(am_path(state, "next"), &st) || !S_ISREG(st.st_mode))
am_path           260 builtin/am.c   	if (strbuf_read_file(sb, am_path(state, file), 0) >= 0) {
am_path           270 builtin/am.c   	die_errno(_("could not read '%s'"), am_path(state, file));
am_path           326 builtin/am.c   	const char *filename = am_path(state, "author-script");
am_path           420 builtin/am.c   	const char *filename = am_path(state, "final-commit");
am_path           451 builtin/am.c   		die(_("could not parse %s"), am_path(state, "original-commit"));
am_path           487 builtin/am.c   		die(_("could not parse %s"), am_path(state, "apply-opt"));
am_path           489 builtin/am.c   	state->rebasing = !!file_exists(am_path(state, "rebasing"));
am_path           515 builtin/am.c   	ret = run_hook_le(NULL, "applypatch-msg", am_path(state, "final-commit"), NULL);
am_path           522 builtin/am.c   				am_path(state, "final-commit"));
am_path           543 builtin/am.c   	cp.in = xopen(am_path(state, "rewritten"), O_RDONLY);
am_path           573 builtin/am.c   	fp = xfopen(am_path(state, "rewritten"), "r");
am_path          1113 builtin/am.c   	unlink(am_path(state, "author-script"));
am_path          1114 builtin/am.c   	unlink(am_path(state, "final-commit"));
am_path          1117 builtin/am.c   	unlink(am_path(state, "original-commit"));
am_path          1271 builtin/am.c   	cp.out = xopen(am_path(state, "info"), O_WRONLY | O_CREAT, 0777);
am_path          1305 builtin/am.c   	argv_array_push(&cp.args, am_path(state, "msg"));
am_path          1306 builtin/am.c   	argv_array_push(&cp.args, am_path(state, "patch"));
am_path          1315 builtin/am.c   	fp = xfopen(am_path(state, "info"), "r");
am_path          1338 builtin/am.c   	if (is_empty_file(am_path(state, "patch"))) {
am_path          1344 builtin/am.c   	if (strbuf_read_file(&msg, am_path(state, "msg"), 0) < 0)
am_path          1345 builtin/am.c   		die_errno(_("could not read '%s'"), am_path(state, "msg"));
am_path          1453 builtin/am.c   	fp = xfopen(am_path(state, "patch"), "w");
am_path          1487 builtin/am.c   	fp = xfopen(am_path(state, "patch"), "w");
am_path          1561 builtin/am.c   	argv_array_push(&cp.args, am_path(state, "patch"));
am_path          1584 builtin/am.c   	argv_array_push(&cp.args, am_path(state, "patch"));
am_path          1740 builtin/am.c   		FILE *fp = xfopen(am_path(state, "rewritten"), "a");
am_path          1761 builtin/am.c   			am_path(state, "final-commit"));
am_path          1765 builtin/am.c   			am_path(state, "author-script"));
am_path          1809 builtin/am.c   			if (!launch_editor(am_path(state, "final-commit"), &msg, NULL)) {
am_path          1821 builtin/am.c   			argv_array_push(&cp.args, am_path(state, "patch"));
am_path          1839 builtin/am.c   	unlink(am_path(state, "dirtyindex"));
am_path          1851 builtin/am.c   		const char *mail = am_path(state, msgnum(state));
am_path          1887 builtin/am.c   			strbuf_addstr(&sb, am_path(state, "patch-merge-index"));
am_path          1911 builtin/am.c   						am_path(state, "patch"));
am_path          1926 builtin/am.c   	if (!is_empty_file(am_path(state, "rewritten"))) {
am_path          2140 builtin/am.c   	if (file_exists(am_path(state, "dirtyindex")))
am_path          2145 builtin/am.c   			die(_("could not parse %s"), am_path(state, "abort_safety"));