https://github.com/git/git
Revision 1b510aa442d992b9983282abfad5743ac0e9be54 authored by Johannes Schindelin on 10 January 2007, 12:22:50 UTC, committed by Junio C Hamano on 10 January 2007, 16:31:29 UTC
Since c869753e, core.filemode is hardwired to false on Cygwin.
So this test had no chance to succeed, since an early commit
(changing just the filemode) failed, and therefore all subsequent
tests.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 9a0eaf8
Raw File
Tip revision: 1b510aa442d992b9983282abfad5743ac0e9be54 authored by Johannes Schindelin on 10 January 2007, 12:22:50 UTC
Fix t1410 for core.filemode==false
Tip revision: 1b510aa
builtin-runstatus.c
#include "cache.h"
#include "wt-status.h"

extern int wt_status_use_color;

static const char runstatus_usage[] =
"git-runstatus [--color|--nocolor] [--amend] [--verbose] [--untracked]";

int cmd_runstatus(int argc, const char **argv, const char *prefix)
{
	struct wt_status s;
	int i;

	git_config(git_status_config);
	wt_status_prepare(&s);

	for (i = 1; i < argc; i++) {
		if (!strcmp(argv[i], "--color"))
			wt_status_use_color = 1;
		else if (!strcmp(argv[i], "--nocolor"))
			wt_status_use_color = 0;
		else if (!strcmp(argv[i], "--amend")) {
			s.amend = 1;
			s.reference = "HEAD^1";
		}
		else if (!strcmp(argv[i], "--verbose"))
			s.verbose = 1;
		else if (!strcmp(argv[i], "--untracked"))
			s.untracked = 1;
		else
			usage(runstatus_usage);
	}

	wt_status_print(&s);
	return s.commitable ? 0 : 1;
}
back to top