xstrdup 68 abspath.c last_elem = xstrdup(last_slash + 1); xstrdup 351 archive-tar.c ar->data = xstrdup(value); xstrdup 26 argv-array.c argv_array_push_nodup(array, xstrdup(value)); xstrdup 529 attr.c elem->origin = xstrdup(""); xstrdup 158 builtin/am.c state->dir = xstrdup(dir); xstrdup 869 builtin/am.c series_dir_buf = xstrdup(*paths); xstrdup 1422 builtin/am.c state->author_name = xstrdup(""); xstrdup 1430 builtin/am.c state->author_email = xstrdup(""); xstrdup 1441 builtin/am.c state->msg = xstrdup(msg + 2); xstrdup 697 builtin/apply.c return squash_slash(xstrdup(def)); xstrdup 1499 builtin/apply.c patch->old_name = xstrdup(patch->def_name); xstrdup 1500 builtin/apply.c patch->new_name = xstrdup(patch->def_name); xstrdup 1931 builtin/apply.c *name = xstrdup(prefix_filename(prefix, prefix_length, *name)); xstrdup 2459 builtin/blame.c return xstrdup(final_commit_name); xstrdup 2751 builtin/blame.c string_list_append(&range_list, xstrdup("1")); xstrdup 309 builtin/branch.c return xstrdup(dst); xstrdup 386 builtin/branch.c newitem->name = xstrdup(refname); xstrdup 458 builtin/checkout.c branch->name = xstrdup(buf.buf); xstrdup 157 builtin/clone.c canon = raw ? xstrdup(absolute_path(raw)) : NULL; xstrdup 283 builtin/clone.c ref_git = xstrdup(real_path(item->string)); xstrdup 290 builtin/clone.c ref_git = xstrdup(repo); xstrdup 867 builtin/clone.c repo = xstrdup(absolute_path(repo_name)); xstrdup 878 builtin/clone.c dir = xstrdup(argv[1]); xstrdup 899 builtin/clone.c git_dir = xstrdup(dir); xstrdup 181 builtin/config.c key = xstrdup(key_); xstrdup 261 builtin/config.c normalized = xstrdup(value); xstrdup 508 builtin/config.c xstrdup(prefix_filename(prefix, xstrdup 572 builtin/config.c config_file = xstrdup(given_config_source.file ? xstrdup 118 builtin/describe.c e->path = xstrdup(path); xstrdup 125 builtin/fast-export.c ret->orig = xstrdup(orig); xstrdup 605 builtin/fetch.c url = xstrdup("foreign"); xstrdup 784 builtin/fetch.c url = xstrdup("foreign"); xstrdup 145 builtin/help.c char *new = xstrdup(path); xstrdup 203 builtin/help.c new->info = xstrdup(value); xstrdup 271 builtin/help.c html_path = xstrdup(value); xstrdup 309 builtin/index-pack.c pack_name = xstrdup(tmp_file); xstrdup 353 builtin/init-db.c git_link = xstrdup(real_path(git_dir)); xstrdup 518 builtin/init-db.c real_git_dir = xstrdup(real_path(real_git_dir)); xstrdup 589 builtin/init-db.c git_work_tree_cfg = xstrdup(real_path(rel)); xstrdup 747 builtin/log.c default_attach = xstrdup(value); xstrdup 749 builtin/log.c default_attach = xstrdup(git_version_string); xstrdup 920 builtin/log.c branch = xstrdup(v); xstrdup 1046 builtin/log.c return xstrdup(prefix_filename(prefix, outdir_offset, xstrdup 1180 builtin/log.c *from = xstrdup(arg); xstrdup 1182 builtin/log.c *from = xstrdup(git_committer_info(IDENT_NO_DATE)); xstrdup 1431 builtin/log.c branch_name = xstrdup(v); xstrdup 1433 builtin/log.c branch_name = xstrdup(""); /* no branch */ xstrdup 152 builtin/merge.c ret->name = xstrdup(name); xstrdup 180 builtin/merge.c xopts[xopts_nr++] = xstrdup(arg); xstrdup 556 builtin/merge.c branch_mergeoptions = xstrdup(v); xstrdup 719 builtin/merge.c buf = xstrdup(string); xstrdup 725 builtin/merge.c (*list)[(*nr)++].name = xstrdup(q); xstrdup 731 builtin/merge.c (*list)[(*nr)++].name = xstrdup(q); xstrdup 39 builtin/mv.c result[i] = xstrdup(basename(it)); xstrdup 75 builtin/mv.c *submodule_gitfile = xstrdup(*submodule_gitfile); xstrdup 130 builtin/name-rev.c tip_table.table[tip_table.nr].refname = xstrdup(refname); xstrdup 176 builtin/name-rev.c name_rev(commit, xstrdup(path), 0, 0, deref); xstrdup 477 builtin/receive-pack.c push_cert_nonce = xstrdup(nonce); xstrdup 1051 builtin/receive-pack.c argv[argc] = xstrdup(cmd->ref_name); xstrdup 291 builtin/remote.c info->remote_name = xstrdup(value); xstrdup 302 builtin/remote.c string_list_append(&info->merge, xstrdup(value)); xstrdup 352 builtin/remote.c item->util = xstrdup(ref->name); xstrdup 405 builtin/remote.c info->dest = xstrdup(abbrev_branch(ref->name)); xstrdup 439 builtin/remote.c info->dest = xstrdup(item->string); xstrdup 453 builtin/remote.c info->dest = xstrdup(spec->dst ? spec->dst : item->string); xstrdup 568 builtin/remote.c item = string_list_append(rename->remote_branches, xstrdup(refname)); xstrdup 572 builtin/remote.c item->util = xstrdup(symref); xstrdup 1247 builtin/remote.c head_name = xstrdup(argv[1]); xstrdup 1261 builtin/remote.c head_name = xstrdup(states.heads.items[0].string); xstrdup 417 builtin/rev-parse.c o->help = xstrdup(skipspaces(sb.buf)); xstrdup 422 builtin/rev-parse.c o->help = xstrdup(skipspaces(help)); xstrdup 53 builtin/revert.c opts->xopts[opts->xopts_nr++] = xstrdup(arg); xstrdup 313 builtin/rm.c list.entry[list.nr].name = xstrdup(ce->name); xstrdup 392 builtin/show-branch.c ref_name[ref_name_cnt++] = xstrdup(refname); xstrdup 578 builtin/show-branch.c default_arg[default_num++] = xstrdup(value); xstrdup 744 builtin/update-index.c path = xstrdup(ce->name); xstrdup 233 builtin/worktree.c junk_git_dir = xstrdup(sb_repo.buf); xstrdup 247 builtin/worktree.c junk_work_tree = xstrdup(path); xstrdup 20 bundle.c list->list[list->nr].name = xstrdup(name); xstrdup 1235 commit.c mergetag->key = xstrdup("mergetag"); xstrdup 825 compat/mingw.c envpath = xstrdup(envpath); xstrdup 843 compat/mingw.c path[i++] = xstrdup(p); xstrdup 875 compat/mingw.c return xstrdup(path); xstrdup 879 compat/mingw.c return xstrdup(path); xstrdup 894 compat/mingw.c prog = xstrdup(cmd); xstrdup 1309 compat/mingw.c ai->ai_canonname = h ? xstrdup(h->h_name) : NULL; xstrdup 215 config.c envw = xstrdup(env); xstrdup 669 config.c *dest = xstrdup(value); xstrdup 838 config.c notes_ref_name = xstrdup(value); xstrdup 1344 config.c e->key = xstrdup(key); xstrdup 104 connect.c ref->symref = xstrdup((char *)item->util); xstrdup 158 connect.c server_capabilities = xstrdup(name + name_len + 1); xstrdup 600 connect.c url = xstrdup(url_orig); xstrdup 644 connect.c path = xstrdup(path); xstrdup 647 connect.c *ret_host = xstrdup(host); xstrdup 694 connect.c target_host = xstrdup(target_host); xstrdup 696 connect.c target_host = xstrdup(hostandport); xstrdup 771 connect.c ssh_dup = xstrdup(ssh); xstrdup 153 contrib/credential/osxkeychain/git-credential-osxkeychain.c host = xstrdup(v); xstrdup 156 contrib/credential/osxkeychain/git-credential-osxkeychain.c path = xstrdup(v); xstrdup 158 contrib/credential/osxkeychain/git-credential-osxkeychain.c username = xstrdup(v); xstrdup 160 contrib/credential/osxkeychain/git-credential-osxkeychain.c password = xstrdup(v); xstrdup 222 credential-cache--daemon.c char *path_copy = xstrdup(path); xstrdup 70 credential.c c->username = xstrdup(value); xstrdup 128 credential.c return xstrdup(r); xstrdup 161 credential.c c->username = xstrdup(value); xstrdup 164 credential.c c->password = xstrdup(value); xstrdup 167 credential.c c->protocol = xstrdup(value); xstrdup 170 credential.c c->host = xstrdup(value); xstrdup 173 credential.c c->path = xstrdup(value); xstrdup 796 date.c mode->strftime_fmt = xstrdup(format); xstrdup 274 diff-no-index.c p = xstrdup(prefix_filename(prefix, prefixlen, p)); xstrdup 81 diff.c char *params_copy = xstrdup(params_string); xstrdup 1420 diff.c x->from_name = xstrdup(name_a); xstrdup 1421 diff.c x->name = xstrdup(name_b); xstrdup 1426 diff.c x->name = xstrdup(name_a); xstrdup 2866 diff.c char *path_dup = xstrdup(path); xstrdup 1557 dir.c dir->untracked[dir->untracked_nr++] = xstrdup(name); xstrdup 2205 dir.c char *dirs = xstrdup(name); xstrdup 2474 dir.c untracked->untracked[i] = xstrdup((const char*)data); xstrdup 2561 dir.c uc->exclude_per_dir = xstrdup(ouc->exclude_per_dir); xstrdup 128 environment.c return xstrdup(""); xstrdup 154 environment.c return xstrdup(value); xstrdup 168 environment.c git_dir = xstrdup(gitfile ? gitfile : git_dir); xstrdup 181 environment.c git_replace_ref_base = xstrdup(replace_ref_base ? replace_ref_base xstrdup 240 environment.c work_tree = xstrdup(real_path(new_work_tree)); xstrdup 19 exec_cmd.c return xstrdup(path); xstrdup 1955 fast-import.c char *term = xstrdup(data); xstrdup 3147 fast-import.c return xstrdup(path); xstrdup 3148 fast-import.c return xstrdup(git_path("info/fast-import/%s", path)); xstrdup 213 fsck.c char *buf = xstrdup(values), *to_free = buf; xstrdup 714 git-compat-util.h extern char *xstrdup(const char *str); xstrdup 741 git-compat-util.h return str ? xstrdup(str) : NULL; xstrdup 40 git.c orig_env[i] = xstrdup(orig_env[i]); xstrdup 518 git.c char *argv0 = xstrdup(argv[0]); xstrdup 121 gpg-interface.c configured_signing_key = xstrdup(key); xstrdup 132 gpg-interface.c gpg_program = xstrdup(value); xstrdup 1672 grep.c gs->identifier = xstrdup(identifier); xstrdup 182 help.c path = paths = xstrdup(env_path); xstrdup 611 http-backend.c return xstrdup(path); xstrdup 764 http-push.c lock->owner = xstrdup(ctx->cdata); xstrdup 770 http-push.c lock->token = xstrdup(ctx->cdata); xstrdup 1100 http-push.c ls->dentry_name = xstrdup(path); xstrdup 1133 http-push.c ls.path = xstrdup(path); xstrdup 1312 http-push.c name = xstrdup(name); xstrdup 1952 http-push.c new_sha1_hex = xstrdup(sha1_to_hex(ref->new_sha1)); xstrdup 565 http-walker.c data->alt->base = xstrdup(url); xstrdup 313 http.c cert_auth.protocol = xstrdup("cert"); xstrdup 314 http.c cert_auth.username = xstrdup(""); xstrdup 315 http.c cert_auth.path = xstrdup(ssl_cert); xstrdup 510 http.c curl_http_proxy = xstrdup(remote->http_proxy); xstrdup 1392 http.c ref->symref = xstrdup(buffer.buf + 5); xstrdup 1545 http.c tmp_idx = xstrdup(preq->tmpfile); xstrdup 1084 imap-send.c cred.protocol = xstrdup(srvc->use_ssl ? "imaps" : "imap"); xstrdup 1085 imap-send.c cred.host = xstrdup(srvc->host); xstrdup 1088 imap-send.c cred.username = xstrdup(srvc->user); xstrdup 1090 imap-send.c cred.password = xstrdup(srvc->pass); xstrdup 1095 imap-send.c srvc->user = xstrdup(cred.username); xstrdup 1097 imap-send.c srvc->pass = xstrdup(cred.password); xstrdup 1349 imap-send.c server.host = xstrdup(val); xstrdup 631 line-log.c ret->path = xstrdup(r->path); xstrdup 686 line-log.c d->path = xstrdup(src->path); xstrdup 759 line-log.c paths[i] = xstrdup(r->path); xstrdup 1038 line-log.c rg->path = xstrdup(pair->one->path); xstrdup 286 ll-merge.c fn->cmdline = xstrdup(value); xstrdup 97 mailmap.c me->name = xstrdup(new_name); xstrdup 101 mailmap.c me->email = xstrdup(new_email); xstrdup 107 mailmap.c mi->name = xstrdup(new_name); xstrdup 109 mailmap.c mi->email = xstrdup(new_email); xstrdup 38 notes-cache.c c->validity = xstrdup(validity); xstrdup 952 notes.c char *globs_copy = xstrdup(globs); xstrdup 334 object.c entry->name = xstrdup(name); xstrdup 337 object.c entry->path = xstrdup(path); xstrdup 77 pack-write.c index_name = xstrdup(tmp_file); xstrdup 334 pack-write.c *pack_tmp_name = xstrdup(tmpname); xstrdup 170 pager.c pager_program = xstrdup(value); xstrdup 130 parse-options-cb.c string_list_append(v, xstrdup(arg)); xstrdup 47 parse-options.c *file = xstrdup(prefix_filename(prefix, strlen(prefix), *file)); xstrdup 480 parse-options.c ctx->argv[0] = xstrdup(ctx->opt - 1); xstrdup 233 pathspec.c match = xstrdup(copyfrom); xstrdup 236 pathspec.c match = xstrdup(copyfrom); xstrdup 11 pkt-line.c packet_trace_prefix = xstrdup(prog); xstrdup 35 pretty.c user_format = xstrdup(cp); xstrdup 71 pretty.c commit_format->name = xstrdup(name); xstrdup 630 pretty.c out = xstrdup(msg); xstrdup 201 ref-filter.c v->s = xstrdup(find_unique_abbrev(sha1, DEFAULT_ABBREV)); xstrdup 388 ref-filter.c v->s = xstrdup(show_date(timestamp, tz, &date_mode)); xstrdup 538 ref-filter.c v->s = xstrdup(subpos); xstrdup 661 ref-filter.c v->s = xstrdup(color); xstrdup 673 ref-filter.c v->s = xstrdup(buf + 1); xstrdup 713 ref-filter.c v->s = xstrdup(buf); xstrdup 716 ref-filter.c v->s = xstrdup(buf); xstrdup 720 ref-filter.c v->s = xstrdup(buf); xstrdup 33 reflog-walk.c item->email = xstrdup(email); xstrdup 36 reflog-walk.c item->message = xstrdup(message); xstrdup 45 reflog-walk.c reflogs->ref = xstrdup(ref); xstrdup 156 reflog-walk.c branch = xstrdup(name); xstrdup 2342 refs.c *ref = xstrdup(r); xstrdup 2379 refs.c *log = xstrdup(it); xstrdup 2475 refs.c lock->ref_name = xstrdup(refname); xstrdup 2476 refs.c lock->orig_ref_name = xstrdup(orig_refname); xstrdup 3590 refs.c *cb->msg = xstrdup(message); xstrdup 3632 refs.c *cb->msg = xstrdup(message); xstrdup 4025 refs.c update->msg = xstrdup(msg); xstrdup 4412 refs.c return xstrdup(refname); xstrdup 4415 refs.c short_name = xstrdup(refname); xstrdup 4467 refs.c return xstrdup(refname); xstrdup 4483 refs.c ref = xstrdup(value); xstrdup 708 remote-curl.c targets[i] = xstrdup(sha1_to_hex(to_fetch[i]->old_sha1)); xstrdup 940 remote-curl.c specs[nr_spec++] = xstrdup(buf->buf + 5); xstrdup 210 remote.c ret->name = xstrdup(name); xstrdup 237 remote.c ret->base = xstrdup(base); xstrdup 285 remote.c add_url_alias(remote, xstrdup(s)); xstrdup 288 remote.c add_push_refspec(remote, xstrdup(s)); xstrdup 291 remote.c add_fetch_refspec(remote, xstrdup(s)); xstrdup 373 remote.c add_merge(branch, xstrdup(value)); xstrdup 387 remote.c add_instead_of(rewrite, xstrdup(value)); xstrdup 392 remote.c add_instead_of(rewrite, xstrdup(value)); xstrdup 936 remote.c *result = xstrdup(value); xstrdup 1311 remote.c name = xstrdup(ref->name); xstrdup 1669 remote.c ret->merge[i]->src = xstrdup(ret->merge_name[i]); xstrdup 1677 remote.c ret->merge[i]->dst = xstrdup(ret->merge_name[i]); xstrdup 47 rerere.c name = xstrdup(buf); xstrdup 332 rerere.c mmfile[i].ptr = xstrdup(""); xstrdup 523 rerere.c hex = xstrdup(sha1_to_hex(sha1)); xstrdup 638 rerere.c hex = xstrdup(sha1_to_hex(sha1)); xstrdup 142 resolve-undo.c name = xstrdup(ce->name); xstrdup 318 revision.c commit->util = xstrdup(name); xstrdup 1186 revision.c info->rev[nr].name = xstrdup(name); xstrdup 1649 revision.c prune->path[prune->nr++] = xstrdup(sb->buf); xstrdup 1933 revision.c revs->break_bar = xstrdup(arg + 20); xstrdup 2046 revision.c git_log_output_encoding = xstrdup(optarg); xstrdup 186 send-pack.c hint->remote_status = xstrdup(msg); xstrdup 264 send-pack.c char *signing_key = xstrdup(get_signing_key()); xstrdup 789 sequencer.c opts->xopts[opts->xopts_nr++] = xstrdup(value); xstrdup 570 setup.c gitfile = xstrdup(gitfile); xstrdup 664 setup.c gitdir = xstrdup(real_path(gitdir)); xstrdup 776 setup.c item->string = xstrdup(real_path); xstrdup 856 setup.c gitdirenv = gitfile = xstrdup(gitfile); xstrdup 983 setup.c git_work_tree_cfg = xstrdup(value); xstrdup 167 sha1_file.c char *buf = xstrdup(path); xstrdup 679 sha1_file.c idx_name = xstrdup(p->pack_name); xstrdup 98 shell.c split_args = xstrdup(rawargs); xstrdup 183 shell.c prog = xstrdup(argv[2]); xstrdup 53 string-list.c xstrdup(string) : (char *)string; xstrdup 211 string-list.c list->strdup_strings ? xstrdup(string) : (char *)string); xstrdup 426 submodule.c sha1_copy = xstrdup(sha1_to_hex(new_sha1)); xstrdup 529 submodule.c string_list_append(&changed_submodule_paths, xstrdup(p->two->path)); xstrdup 1025 submodule.c const char *real_work_tree = xstrdup(real_path(work_tree)); xstrdup 11 test-mktemp.c xmkstemp(xstrdup(argv[1])); xstrdup 25 test-path-utils.c item->string = xstrdup(buf); xstrdup 74 test-path-utils.c char *path = xstrdup(argv[2]); xstrdup 63 test-string-list.c char *s = xstrdup(argv[2]); xstrdup 238 trailer.c result = xstrdup(""); xstrdup 256 trailer.c arg = xstrdup(in_tok->value); xstrdup 258 trailer.c arg = xstrdup(""); xstrdup 431 trailer.c dst->name = xstrdup(src->name); xstrdup 433 trailer.c dst->key = xstrdup(src->key); xstrdup 435 trailer.c dst->command = xstrdup(src->command); xstrdup 454 trailer.c item->conf.name = xstrdup(name); xstrdup 502 trailer.c separators = xstrdup(value); xstrdup 544 trailer.c conf->key = xstrdup(value); xstrdup 549 trailer.c conf->command = xstrdup(value); xstrdup 608 trailer.c new->value = val ? val : xstrdup(""); xstrdup 612 trailer.c new->token = xstrdup(token_from_item(conf_item, tok)); xstrdup 186 transport-helper.c refspecs[refspec_nr++] = xstrdup(arg); xstrdup 192 transport-helper.c data->export_marks = xstrdup(arg); xstrdup 194 transport-helper.c data->import_marks = xstrdup(arg); xstrdup 365 transport-helper.c transport->pack_lockfile = xstrdup(name); xstrdup 490 transport-helper.c private = xstrdup(name); xstrdup 661 transport-helper.c msg = xstrdup(msg); xstrdup 1017 transport-helper.c (*tail)->symref = xstrdup(buf.buf + 1); xstrdup 60 transport.c list.entries[list.nr++] = xstrdup(de->d_name); xstrdup 518 transport.c char *dest = xstrdup(transport->url); xstrdup 1384 transport.c return xstrdup(url); xstrdup 1403 transport.c other = xstrdup(real_path(e->base)); xstrdup 771 upload-pack.c item->util = xstrdup(symref_target); xstrdup 236 walker.c (*target)[targets] = xstrdup(tg_one); xstrdup 482 wt-status.c d->head_path = xstrdup(p->one->path); xstrdup 1354 wt-status.c state->detached_from = xstrdup(from); xstrdup 1357 wt-status.c xstrdup(find_unique_abbrev(cb.nsha1, DEFAULT_ABBREV)); xstrdup 189 xdiff-interface.c ptr->ptr = xstrdup("");