Revision c74f97a624f6a79767d2e2d55d98bab5e2b02f16 authored by Junio C Hamano on 18 January 2012, 23:16:43 UTC, committed by Junio C Hamano on 18 January 2012, 23:16:43 UTC
* nd/pathspec-recursion-cleanup:
  diff-index: enable recursive pathspec matching in unpack_trees
  Document limited recursion pathspec matching with wildcards
2 parent s 8ef7933 + 4838237
Raw File
test-subprocess.c
#include "cache.h"
#include "run-command.h"

int main(int argc, char **argv)
{
	struct child_process cp;
	int nogit = 0;

	setup_git_directory_gently(&nogit);
	if (nogit)
		die("No git repo found");
	if (!strcmp(argv[1], "--setup-work-tree")) {
		setup_work_tree();
		argv++;
	}
	memset(&cp, 0, sizeof(cp));
	cp.git_cmd = 1;
	cp.argv = (const char **)argv+1;
	return run_command(&cp);
}
back to top