public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Miguel Ángel Pastor Olivar via GitGitGadget" <gitgitgadget@gmail•com>
To: git@vger•kernel.org
Cc: "Miguel Ángel Pastor Olivar" <miguelinlas3@gmail•com>
Subject: [PATCH 0/2] Symlink resolutions: limits and return modes
Date: Mon, 17 Jun 2024 09:03:46 +0000	[thread overview]
Message-ID: <pull.1751.git.1718615028.gitgitgadget@gmail.com> (raw)

It can be useful to limit the number of symlink resolutions performed while
looking for a tree entry. The goal is to provide the ability to resolve up
to a particular depth, instead of reaching the end of the link chain.

In addition, I would like to extend the symlink resolution process and
provide the ability to return the object found at the designated depth
instead of returning an error.

The current code already provides a limit to the maximum number of
resolutions that can be performed, and something similar to this is returned
to the caller:

loop SP <size> LF
<object> LF


With these patches, we are looking to return the actual information of the
object where the resolution stopped. Something similar to:

<oid> blob <size>\nndata\n


Miguel Ángel Pastor Olivar (2):
  cat-file: configurable number of symlink resolutions
  cat-file: configurable "best effort mode" for symlink resolution

 Documentation/config/core.txt | 19 +++++++++++++++
 config.c                      | 18 ++++++++++++++
 environment.c                 |  3 +++
 environment.h                 |  8 ++++++
 t/t1006-cat-file.sh           | 46 +++++++++++++++++++++++++++++++++++
 tree-walk.c                   | 18 +++++++++++++-
 6 files changed, 111 insertions(+), 1 deletion(-)


base-commit: d63586cb314731c851f28e14fc8012988467e2da
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1751%2Fmigue%2Fmigue%2Ffollow-symlinks-max-depth-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1751/migue/migue/follow-symlinks-max-depth-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/1751
-- 
gitgitgadget

             reply	other threads:[~2024-06-17  9:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17  9:03 Miguel Ángel Pastor Olivar via GitGitGadget [this message]
2024-06-17  9:03 ` [PATCH 1/2] cat-file: configurable number of symlink resolutions Miguel Ángel Pastor Olivar via GitGitGadget
2024-06-17 19:33   ` Junio C Hamano
2024-06-17  9:03 ` [PATCH 2/2] cat-file: configurable "best effort mode" for symlink resolution Miguel Ángel Pastor Olivar via GitGitGadget
2024-06-17 19:33   ` Junio C Hamano
2024-06-17 19:33 ` [PATCH 0/2] Symlink resolutions: limits and return modes Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=pull.1751.git.1718615028.gitgitgadget@gmail.com \
    --to=gitgitgadget@gmail$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=miguelinlas3@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox