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

Re: [PATCH v5 3/3] cat-file: add --follow-symlinks to --batch

From
Johannes Sixt <j6t@kdbg.org>
Date
May 12, 2015, 17:34 UTC
Message-ID
<5552398C.20700@kdbg.org>
In-Reply-To
<1431384645-17276-4-git-send-email-dturner@twopensource.com>
Am 12.05.2015 um 00:50 schrieb dturner@twopensource.com:
Show 35 quoted lines
> +# Tests for git cat-file --follow-symlinks
> +test_expect_success 'prep for symlink tests' '
> +	echo_without_newline "$hello_content" >morx &&
> +	test_ln_s_add morx same-dir-link &&
> +	test_ln_s_add ../fleem out-of-repo-link &&
> +	test_ln_s_add .. out-of-repo-link-dir &&
> +	test_ln_s_add same-dir-link link-to-link &&
> +	test_ln_s_add nope broken-same-dir-link &&
> +	mkdir dir &&
> +	test_ln_s_add ../morx dir/parent-dir-link &&
> +	test_ln_s_add .. dir/link-dir &&
> +	test_ln_s_add ../../escape dir/out-of-repo-link &&
> +	test_ln_s_add ../.. dir/out-of-repo-link-dir &&
> +	test_ln_s_add nope dir/broken-link-in-dir &&
> +	mkdir dir/subdir &&
> +	test_ln_s_add ../../morx dir/subdir/grandparent-dir-link &&
> +	test_ln_s_add ../../../great-escape dir/subdir/out-of-repo-link &&
> +	test_ln_s_add ../../.. dir/subdir/out-of-repo-link-dir &&
> +	test_ln_s_add ../../../ dir/subdir/out-of-repo-link-dir-trailing &&
> +	test_ln_s_add ../parent-dir-link dir/subdir/parent-dir-link-to-link &&
> +	echo_without_newline "$hello_content" >dir/subdir/ind2 &&
> +	echo_without_newline "$hello_content" >dir/ind1 &&
> +	test_ln_s_add dir dirlink &&
> +	test_ln_s_add dir/subdir subdirlink &&
> +	test_ln_s_add subdir/ind2 dir/link-to-child &&
> +	test_ln_s_add dir/link-to-child link-to-down-link &&
> +	test_ln_s_add dir/.. up-down &&
> +	test_ln_s_add dir/../ up-down-trailing &&
> +	test_ln_s_add dir/../morx up-down-file &&
> +	test_ln_s_add dir/../../morx up-up-down-file &&
> +	test_ln_s_add subdirlink/../../morx up-two-down-file &&
> +	test_ln_s_add loop1 loop2 &&
> +	test_ln_s_add loop2 loop1 &&
> +	git add morx dir/subdir/ind2 dir/ind1 &&
> +	git commit -am "test"
Broken && chain.
> +	echo $hello_sha1 blob $hello_size >found
> +'
-- Hannes
Previous: dturner@twopensource.comNext: Junio C Hamano
Message 6 of 20 in “cat-file --follow-symlinks”
  1. 0/3 cat-file --follow-symlinksdturner@twopensource.com, May 11, 2015
  2. 1/3 tree-walk: learn get_tree_entry_follow_symlinksdturner@twopensource.com, May 11, 2015
  3. Johannes SixtMay 12, 2015
  4. 2/3 sha1_name: get_sha1_with_context learns to follow symlinksdturner@twopensource.com, May 11, 2015
  5. 3/3 cat-file: add --follow-symlinks to --batchdturner@twopensource.com, May 11, 2015
  6. Johannes SixtMay 12, 2015
  7. Junio C HamanoMay 12, 2015
  8. David TurnerMay 12, 2015
  9. Junio C HamanoMay 12, 2015
  10. David TurnerMay 12, 2015
  11. Junio C HamanoMay 12, 2015
  12. Junio C HamanoMay 12, 2015
  13. David TurnerMay 12, 2015
  14. Junio C HamanoMay 12, 2015
  15. Junio C HamanoMay 12, 2015
  16. Junio C HamanoMay 12, 2015
  17. David TurnerMay 12, 2015
  18. Junio C HamanoMay 12, 2015
  19. David TurnerMay 12, 2015
  20. Junio C HamanoMay 14, 2015

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.