aboutsummaryrefslogtreecommitdiffstats
path: root/run-command.c
AgeCommit message (Expand)AuthorFilesLines
12 daysrun-command: introduce function to prepare auto-maintenance processPatrick Steinhardt1-6/+13
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-08-09Merge branch 'ma/locate-in-path-for-windows'Junio C Hamano1-0/+2
2023-08-03run-command: conditionally define locate_in_PATH()Matthias Aßhauer1-0/+2
2023-06-29Merge branch 'en/header-split-cache-h-part-3'Junio C Hamano1-1/+1
2023-06-23Merge branch 'rs/run-command-exec-error-on-noent'Junio C Hamano1-11/+3
2023-06-21run-command.h: move declarations for run-command.c from cache.hElijah Newren1-1/+1
2023-06-12run-command: report exec error even on ENOENTRené Scharfe1-11/+3
2023-05-19Merge branch 'tb/run-command-needs-alloc-h'Junio C Hamano1-0/+1
2023-05-16run-command.c: fix missing include under `NO_PTHREADS`Taylor Blau1-0/+1
2023-04-24symlinks.h: move declarations for symlinks.c functions from cache.hElijah Newren1-0/+1
2023-04-11treewide: be explicit about dependence on trace.h & trace2.hElijah Newren1-0/+2
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-24run-command: mark error routine parameters as unusedJeff King1-3/+3
2023-02-08run-command: allow stdin for run_processes_parallelEmily Shaffer1-1/+8
2023-02-08run-command.c: remove dead assignment in while-loopÆvar Arnfjörð Bjarmason1-3/+1
2023-01-08*: fix typos which duplicate a wordAndrei Rybak1-1/+1
2022-12-19Merge branch 'sx/pthread-error-check-fix'Junio C Hamano1-1/+1
2022-12-05maintenance: compare output of pthread functions for inequality with 0Seija1-1/+1
2022-11-08Merge branch 'rs/no-more-run-command-v'Taylor Blau1-35/+0
2022-10-30replace and remove run_command_v_opt()René Scharfe1-15/+0
2022-10-30replace and remove run_command_v_opt_cd_env_tr2()René Scharfe1-10/+0
2022-10-30replace and remove run_command_v_opt_tr2()René Scharfe1-5/+0
2022-10-30replace and remove run_command_v_opt_cd_env()René Scharfe1-6/+1
2022-10-12run-command.c: remove "max_processes", add "const" to signal() handlerÆvar Arnfjörð Bjarmason1-11/+26
2022-10-12run-command.c: pass "opts" further down, and use "opts->processes"Ævar Arnfjörð Bjarmason1-8/+11
2022-10-12run-command.c: use "opts->processes", not "pp->max_processes"Ævar Arnfjörð Bjarmason1-7/+9
2022-10-12run-command.c: don't copy "data" to "struct parallel_processes"Ævar Arnfjörð Bjarmason1-6/+3
2022-10-12run-command.c: don't copy "ungroup" to "struct parallel_processes"Ævar Arnfjörð Bjarmason1-10/+8
2022-10-12run-command.c: don't copy *_fn to "struct parallel_processes"Ævar Arnfjörð Bjarmason1-42/+25
2022-10-12run-command.c: make "struct parallel_processes" const if possibleÆvar Arnfjörð Bjarmason1-2/+2
2022-10-12run-command API: move *_tr2() users to "run_processes_parallel()"Ævar Arnfjörð Bjarmason1-18/+0
2022-10-12run-command API: have run_process_parallel() take an "opts" structÆvar Arnfjörð Bjarmason1-23/+31
2022-10-12run-command.c: use designated init for pp_init(), add "const"Ævar Arnfjörð Bjarmason1-20/+14
2022-10-12run-command API: don't fall back on online_cpus()Ævar Arnfjörð Bjarmason1-4/+3
2022-10-12run-command API: make "n" parameter a "size_t"Ævar Arnfjörð Bjarmason1-24/+18
2022-10-12run-command API: have "run_processes_parallel{,_tr2}()" return voidÆvar Arnfjörð Bjarmason1-16/+11
2022-08-17pipe_command(): mark stdin descriptor as non-blockingJeff King1-0/+10
2022-08-17pipe_command(): handle ENOSPC when writing to a pipeJeff King1-1/+2
2022-08-17pipe_command(): avoid xwrite() for writing to pipeJeff King1-5/+17
2022-06-13Merge branch 'js/wait-or-whine-can-fail'Junio C Hamano1-1/+2
2022-06-13Merge branch 'ab/hooks-regression-fix'Junio C Hamano1-19/+51
2022-06-07run-command: don't spam trace2_child_exit()Josh Steadmon1-1/+2
2022-06-07run-command: add an "ungroup" option to run_process_parallel()Ævar Arnfjörð Bjarmason1-19/+51
2022-06-02run-command API users: use "env" not "env_array" in comments & namesÆvar Arnfjörð Bjarmason1-3/+3
2022-06-02run-command API: rename "env_array" to "env"Ævar Arnfjörð Bjarmason1-6/+7
2022-02-09Merge branch 'ab/config-based-hooks-2'Junio C Hamano1-33/+0
2022-01-10Merge branch 'ab/usage-die-message'Junio C Hamano1-11/+5
2022-01-07run-command: remove old run_hook_{le,ve}() hook APIEmily Shaffer1-33/+0
2022-01-07read-cache: convert post-index-change to use hook.hEmily Shaffer1-1/+1
2021-12-15Merge branch 'ab/run-command'Junio C Hamano1-35/+27
2021-12-10Merge branch 'jk/t7006-sigpipe-tests-fix'Junio C Hamano1-10/+9
2021-12-07usage.c API users: use die_message() for "fatal :" + exit 128Ævar Arnfjörð Bjarmason1-11/+5
2021-11-25run-command API: remove "env" member, always use "env_array"Ævar Arnfjörð Bjarmason1-13/+7
2021-11-25run-command API: remove "argv" member, always use "args"Ævar Arnfjörð Bjarmason1-22/+20
2021-11-25run-command API users: use strvec_pushv(), not argv assignmentÆvar Arnfjörð Bjarmason1-1/+1
2021-11-22run-command: unify signal and regular logic for wait_or_whine()Jeff King1-10/+9
2021-11-04Merge branch 'vd/pthread-setspecific-g11-fix'Junio C Hamano1-1/+1
2021-11-03async_die_is_recursing: work around GCC v11.x issue on FedoraVictoria Dye1-1/+1
2021-10-13Merge branch 'jh/builtin-fsmonitor-part1'Junio C Hamano1-0/+129
2021-09-27hook.[ch]: move find_hook() from run-command.c to hook.cÆvar Arnfjörð Bjarmason1-34/+1
2021-09-23Merge branch 'mr/bisect-in-c-4'Junio C Hamano1-2/+2
2021-09-20Merge branch 'js/run-command-close-packs'Junio C Hamano1-0/+6
2021-09-20run-command: create start_bg_commandJeff Hostetler1-0/+129
2021-09-13run-command: make `exists_in_PATH()` non-staticPranit Bauva1-2/+2
2021-09-10Merge branch 'ab/retire-advice-config'Junio C Hamano1-1/+1
2021-09-09run_auto_maintenance(): implicitly close the object storeJohannes Schindelin1-0/+1
2021-09-09run-command: offer to close the object store before runningJohannes Schindelin1-0/+5
2021-08-25use xopen() to handle fatal open(2) failuresRené Scharfe1-3/+1
2021-08-25advice: remove read uses of most global `advice_` variablesBen Boeckel1-1/+1
2021-07-16Merge branch 'jt/partial-clone-submodule-1'Junio C Hamano1-0/+12
2021-07-01*.c *_init(): define in terms of corresponding *_INIT macroÆvar Arnfjörð Bjarmason1-3/+2
2021-06-28run-command: refactor subprocess env preparationJonathan Tan1-0/+12
2021-03-13use CALLOC_ARRAYRené Scharfe1-2/+2
2021-03-08Sync with Git 2.30.2 for CVE-2021-21300Junio C Hamano1-1/+8
2021-02-12Sync with 2.29.3Johannes Schindelin1-1/+8
2021-02-12Sync with 2.28.1Johannes Schindelin1-1/+8
2021-02-12Sync with 2.27.1Johannes Schindelin1-1/+8
2021-02-12Sync with 2.26.3Johannes Schindelin1-1/+8
2021-02-12Sync with 2.24.4Johannes Schindelin1-1/+8
2021-02-12Sync with 2.21.4Johannes Schindelin1-1/+8
2021-02-12Sync with 2.19.6Johannes Schindelin1-1/+8
2021-02-12Sync with 2.18.5Johannes Schindelin1-1/+8
2021-02-12Sync with 2.17.6Johannes Schindelin1-1/+8
2021-02-12run-command: invalidate lstat cache after a command finishedJohannes Schindelin1-1/+8
2021-02-01pager: properly log pager exit code when signalledÆvar Arnfjörð Bjarmason1-1/+3
2021-02-01run-command: add braces for "if" block in wait_or_whine()Ævar Arnfjörð Bjarmason1-1/+2
2020-09-25maintenance: optionally skip --auto processDerrick Stolee1-0/+6
2020-09-17maintenance: replace run_auto_gc()Derrick Stolee1-9/+7
2020-07-30strvec: rename struct fieldsJeff King1-10/+10
2020-07-28strvec: convert remaining callers away from argv_array nameJeff King1-25/+25
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-07-15Merge branch 'ta/wait-on-aliased-commands-upon-signal' into masterJunio C Hamano1-0/+1
2020-07-07Wait for child on signal death for aliases to builtinsTrygve Aaberge1-0/+1
2020-05-13Merge branch 'jc/auto-gc-quiet'Junio C Hamano1-0/+13
2020-05-07auto-gc: extract a reusable helper from "git fetch"Junio C Hamano1-0/+13
2020-03-27run-command: trigger PATH lookup properly on CygwinAndras Kucsma1-5/+5
2020-02-14Merge branch 'bc/run-command-nullness-after-free-fix' into maintJunio C Hamano1-1/+2
2020-01-22Merge branch 'bc/run-command-nullness-after-free-fix'Junio C Hamano1-1/+2
2020-01-07run-command: avoid undefined behavior in exists_in_PATHbrian m. carlson1-1/+2
2019-11-27run-command: use prepare_git_cmd() in prepare_cmd()René Scharfe1-2/+1
2019-02-22trace2: create new combined trace facilityJeff Hostetler1-1/+58
2018-12-15Merge branch 'jc/run-command-report-exec-failure-fix' into maintJunio C Hamano1-0/+2
2018-12-12run-command: report exec failureJunio C Hamano1-0/+2
2018-11-18Merge branch 'nd/pthreads'Junio C Hamano1-1/+10
2018-11-05Clean up pthread_create() error handlingNguyễn Thái Ngọc Duy1-1/+1
2018-11-05send-pack.c: move async's #ifdef NO_PTHREADS back to run-command.cNguyễn Thái Ngọc Duy1-0/+9
2018-10-25t0061: adjust to test-tool transitionJunio C Hamano1-4/+17
2018-10-25run-command: mark path lookup errors with ENOENTJeff King1-4/+17
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-5/+5
2018-05-06run-command: use BUG() to report bugs, not die()Johannes Schindelin1-13/+10
2018-04-11exec_cmd: rename to use dash in file nameStefan Beller1-1/+1
2018-03-25run-command: use strbuf_addstr() for adding a string to a strbufRené Scharfe1-1/+1
2018-01-19run-command.c: print new cwd in trace_run_command()Nguyễn Thái Ngọc Duy1-0/+5
2018-01-19run-command.c: print env vars in trace_run_command()Nguyễn Thái Ngọc Duy1-0/+63
2018-01-19run-command.c: print program 'git' when tracing git_cmd modeNguyễn Thái Ngọc Duy1-0/+2
2018-01-19run-command.c: introduce trace_run_command()Nguyễn Thái Ngọc Duy1-1/+17
2017-10-10run-command: add hint when a hook is ignoredDamien Marié1-0/+18
2017-10-03run-command: use ALLOC_ARRAYRené Scharfe1-1/+1
2017-08-23Merge branch 'js/run-process-parallel-api-fix' into maintJunio C Hamano1-2/+2
2017-07-21run_processes_parallel: change confusing task_cb conventionJohannes Schindelin1-2/+2
2017-04-25run-command: restrict PATH search to executable filesBrandon Williams1-1/+18
2017-04-25run-command: expose is_executable functionBrandon Williams1-0/+42
2017-04-20run-command: block signals between fork and execveEric Wong1-0/+68
2017-04-20run-command: add note about forking and threadingBrandon Williams1-0/+9
2017-04-20run-command: handle dup2 and close errors in childBrandon Williams1-16/+42
2017-04-20run-command: eliminate calls to error handling functions in childBrandon Williams1-32/+89
2017-04-20run-command: don't die in child when duping /dev/nullBrandon Williams1-15/+13
2017-04-20run-command: prepare child environment before forkingBrandon Williams1-10/+56
2017-04-20run-command: use the async-signal-safe execv instead of execvpBrandon Williams1-1/+29
2017-04-20run-command: prepare command before forkingBrandon Williams1-20/+26
2017-03-24Merge branch 'jk/execv-dashed-external'Junio C Hamano1-1/+1
2017-03-18run-command: fix segfault when cleaning forked async processJeff King1-1/+1
2017-02-02Merge branch 'js/mingw-hooks-with-exe-suffix'Junio C Hamano1-1/+7
2017-01-30mingw: allow hooks to be .exe filesJohannes Schindelin1-1/+7
2017-01-09execv_dashed_external: wait for child on signal deathJeff King1-0/+19
2016-10-17run-command: add clean_on_exit_handlerLars Schneider1-4/+18
2016-10-17run-command: move check_pipe() from write_or_die to run_commandLars Schneider1-2/+15
2016-08-19Merge branch 'ab/hooks'Junio C Hamano1-4/+1
2016-08-16rev-parse: respect core.hooksPath in --git-pathJohannes Schindelin1-4/+1
2016-06-17run-command: add pipe_command helperJeff King1-5/+147
2016-05-17Merge branch 'nd/error-errno'Junio C Hamano1-8/+7
2016-05-17Merge branch 'ab/hooks'Junio C Hamano1-1/+4
2016-05-09run-command.c: use error_errno()Nguyễn Thái Ngọc Duy1-8/+7
2016-05-04hooks: allow customizing where the hook directory isÆvar Arnfjörð Bjarmason1-1/+4
2016-04-29Merge branch 'jk/push-client-deadlock-fix'Junio C Hamano1-0/+10
2016-04-20run-command: teach async threads to ignore SIGPIPEJeff King1-0/+10
2016-04-06Merge branch 'sb/submodule-parallel-update'Junio C Hamano1-6/+6
2016-03-10Merge branch 'jk/tighten-alloc' into maintJunio C Hamano1-35/+25
2016-03-04Merge branch 'sb/submodule-parallel-fetch'Junio C Hamano1-21/+3
2016-03-01run_processes_parallel: rename parameters for the callbacksStefan Beller1-2/+2
2016-03-01run_processes_parallel: treat output of children as byte arrayStefan Beller1-4/+4
2016-03-01run-command: do not pass child process data into callbacksStefan Beller1-21/+3
2016-02-26Merge branch 'jk/epipe-in-async'Junio C Hamano1-0/+10
2016-02-26Merge branch 'jk/tighten-alloc'Junio C Hamano1-35/+25
2016-02-25write_or_die: handle EPIPE in async threadsJeff King1-0/+10
2016-02-22prepare_{git,shell}_cmd: use argv_arrayJeff King1-35/+25
2016-01-20Merge branch 'nd/clear-gitenv-upon-use-of-alias'Junio C Hamano1-1/+1
2015-12-29run-command: don't warn on SIGPIPE deathsJeff King1-1/+1
2015-12-16run-command: add an asynchronous parallel child processorStefan Beller1-0/+335
2015-11-03Merge branch 'rs/daemon-plug-child-leak'Junio C Hamano1-6/+9
2015-11-02run-command: factor out child_process_clear()René Scharfe1-6/+9
2015-10-07Merge branch 'ti/glibc-stdio-mutex-from-signal-handler'Junio C Hamano1-8/+17
2015-10-05Merge branch 'jk/async-pkt-line'Junio C Hamano1-1/+15
2015-09-04pager: don't use unsafe functions in signal handlersTakashi Iwai1-8/+17
2015-09-01run-command: provide in_async query functionJeff King1-1/+15
2015-08-25Merge branch 'jk/long-error-messages'Junio C Hamano1-15/+2
2015-08-11vreportf: report to arbitrary filehandlesJeff King1-15/+2
2015-08-10find_hook: keep our own static bufferJeff King1-4/+6
2015-05-11Merge branch 'nd/multiple-work-trees'Junio C Hamano1-2/+2
2015-03-25Merge branch 'jk/run-command-capture'Junio C Hamano1-1/+22
2015-03-22run-command: forbid using run_command with piped outputJeff King1-1/+6
2015-03-22run-command: introduce capture_command helperJeff King1-0/+16
2015-03-10git-compat-util.h: move SHELL_PATH default into headerKyle J. McKay1-4/+0
2014-12-22Merge branch 'jc/hook-cleanup'Junio C Hamano1-17/+0
2014-12-01path.c: make get_pathname() call sites return const char *Nguyễn Thái Ngọc Duy1-2/+2
2014-12-01run-command.c: retire unused run_hook_with_custom_index()Junio C Hamano1-17/+0
2014-11-10run-command: use void to declare that functions take no parametersRené Scharfe1-2/+2
2014-10-24Merge branch 'eb/no-pthreads'Junio C Hamano1-0/+40
2014-10-19Handle atexit list internaly for unthreaded buildsEtienne Buira1-0/+40
2014-10-19run-command: add env_array, an optional argv_array for envRené Scharfe1-0/+6
2014-08-20run-command: inline prepare_run_command_v_opt()René Scharfe1-16/+8
2014-08-20run-command: call run_command_v_opt_cd_env() instead of duplicating itRené Scharfe1-3/+1
2014-08-20run-command: introduce child_process_init()René Scharfe1-0/+6
2014-08-20run-command: introduce CHILD_PROCESS_INITRené Scharfe1-2/+1
2014-07-30Merge branch 'sk/mingw-uni-fix-more'Junio C Hamano1-8/+2
2014-07-21Win32: don't copy the environment twice when spawning child processesKarsten Blees1-8/+2
2014-07-17run-command: use internal argv_array of struct child_process in run_hook_ve()René Scharfe1-11/+4
2014-05-15run-command: store an optional argv_arrayJeff King1-1/+8
2014-03-18commit: fix patch hunk editing with "commit -p -m"Benoit Pierre1-12/+32
2013-10-31run-command: trivial style fixesFelipe Contreras1-8/+5
2013-07-22Merge branch 'tr/fd-gotcha-fixes'Junio C Hamano1-1/+4
2013-07-12run-command: dup_devnull(): guard against syscalls failingThomas Rast1-1/+4
2013-05-08mingw: rename WIN32 cpp macro to GIT_WINDOWS_NATIVEJonathan Nieder1-5/+5
2013-04-19Merge branch 'jk/a-thread-only-dies-once'Junio C Hamano1-0/+11
2013-04-16run-command: use thread-aware die_is_recursing routineJeff King1-0/+11
2013-03-21run-command: always set failed_errno in start_commandJeff King1-2/+3
2013-02-07Merge branch 'sb/run-command-fd-error-reporting'Junio C Hamano1-2/+6
2013-02-01run-command: be more informative about what failedStephen Boyd1-2/+6