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

[PATCH v6 8/9] test-lib-functions.sh: Add lf_to_nul

From
JHJeff Hostetler <git@jeffhostetler.com>
Date
Aug 11, 2016, 14:46 UTC
Message-ID
<1470926762-25394-9-git-send-email-git@jeffhostetler.com>
In-Reply-To
<1470926762-25394-1-git-send-email-git@jeffhostetler.com>
From: Jeff Hostetler <jeffhost@microsoft.com>
Add lf_to_nul() function to test-lib-functions.
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
---
 t/test-lib-functions.sh | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 4f7eadb..fdaeb3a 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -81,6 +81,10 @@ test_decode_color () {
 	'
 }
 
+lf_to_nul () {
+	perl -pe 'y/\012/\000/'
+}
+
 nul_to_q () {
 	perl -pe 'y/\000/Q/'
 }
-- 
2.8.0.rc4.17.gac42084.dirty
Previous: Jeff HostetlerNext: Jeff Hostetler
Message 4 of 13 in “status: V2 porcelain status”
  1. 0/9 status: V2 porcelain statusJeff Hostetler, Aug 11, 2016
  2. 2/9 status: cleanup API to wt_status_printJeff Hostetler, Aug 11, 2016
  3. 7/9 git-status.txt: describe --porcelain=v2 formatJeff Hostetler, Aug 11, 2016
  4. 8/9 test-lib-functions.sh: Add lf_to_nulJeff Hostetler, Aug 11, 2016
  5. 5/9 status: print per-file porcelain v2 status dataJeff Hostetler, Aug 11, 2016
  6. 3/9 status: support --porcelain[=<version>]Jeff Hostetler, Aug 11, 2016
  7. 4/9 status: collect per-file data for --porcelain=v2Jeff Hostetler, Aug 11, 2016
  8. 1/9 status: rename long-format print routinesJeff Hostetler, Aug 11, 2016
  9. 9/9 status: unit tests for --porcelain=v2Jeff Hostetler, Aug 11, 2016
  10. Junio C HamanoAug 11, 2016
  11. Jeff HostetlerAug 11, 2016
  12. 6/9 status: print branch info with --porcelain=v2 --branchJeff Hostetler, Aug 11, 2016
  13. Junio C HamanoAug 11, 2016

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.