git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v2] Add a setting to require a filter to be successful

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Feb 17, 2012, 07:08 UTC
Message-ID
<4F3DFCD0.6070002@viscovery.net>
In-Reply-To
<4f3daaf7.e302440a.02ba.fffff463@mx.google.com>
Am 2/17/2012 2:19, schrieb jehan@orb.com:
> @@ -747,13 +753,19 @@ int convert_to_git(const char *path, const char *src, size_t len,
...
>  	ret |= apply_filter(path, src, len, dst, filter);
> +	if (!ret && required)
> +		die("required filter '%s' failed", ca.drv->name);
Wouldn't it be much more helpful if this were:
	die("%s: clean filter '%s' failed", path, ca.drv->name);
Likewise (with s/clean/smudge/) in convert_to_working_tree_internal().
> +	! git checkout -- test.fs
	test_must_fail git checkout -- test.fs
> +	! git add test.fc
	test_must_fail git add test.fc
-- Hannes
Previous: jehan@orb.comNext: Junio C Hamano
Message 4 of 8 in “Add an option to require a filter to be successful”
  1. Add an option to require a filter to be successfulJehan Bing, Feb 16, 2012
  2. Junio C HamanoFeb 17, 2012
  3. Add a setting to require a filter to be successfuljehan@orb.com, Feb 17, 2012
  4. Johannes SixtFeb 17, 2012
  5. Junio C HamanoFeb 17, 2012
  6. Junio C HamanoFeb 18, 2012
  7. Jehan BingFeb 18, 2012
  8. Junio C HamanoFeb 18, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.