Re: [PATCH 2/5] attr: add GIT_ATTR_INDEX "direction"
- From
René Scharfe <rene.scharfe@lsrfire.ath.cx>
- Date
- Apr 17, 2009, 20:33 UTC
- Message-ID
- <49E8E7A0.5020707@lsrfire.ath.cx>
- In-Reply-To
- <1239848917-14399-3-git-send-email-gitster@pobox.com>
Junio C Hamano schrieb:
Show 7 quoted lines
> @@ -674,6 +676,10 @@ int git_checkattr(const char *path, int num, struct git_attr_check *check)
> void git_attr_set_direction(enum git_attr_direction new, struct index_state *istate)
> {
> enum git_attr_direction old = direction;
> +
> + if (is_bare_repository() && new != GIT_ATTR_INDEX)
> + die("BUG: non-INDEX att direction in a bare repo");It's just a message that is probably never shown, but "[...] attr direction [...]" (with r) would still look better.
René