git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Raul Rangel <rrangel@google.com>
Cc: git@vger.kernel.org
Subject: Re: Make git ls-files omit deleted files
Date: Fri, 12 Jan 2024 13:37:28 -0800	[thread overview]
Message-ID: <xmqqply68c87.fsf@gitster.g> (raw)
In-Reply-To: <CAHQZ30Ad6+YM9qnCOeNNy8e2k-AbYR_bBXTups-7z6=ioyqS5Q@mail.gmail.com> (Raul Rangel's message of "Fri, 12 Jan 2024 14:19:34 -0700")

Raul Rangel <rrangel@google.com> writes:

> I'm trying to copy my current git worktree to a new directory, while
> including all modified and untracked files, but excluding any ignored
> files.

Curiously missing from the above is "unmodified".  You only talked
about modified, untracked, and ignored, but what do you want to do
with them?

As you are grabbing the files from the working tree, I suspect that
you do not want to base your decision on what is in the index, which
means that ls-files might be a wrong tool for the job.

  reply	other threads:[~2024-01-12 21:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-12 21:19 Make git ls-files omit deleted files Raul Rangel
2024-01-12 21:37 ` Junio C Hamano [this message]
2024-01-12 21:50   ` Raul Rangel
2024-01-12 22:18   ` rsbecker
2024-01-16 21:22   ` Raul Rangel

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=xmqqply68c87.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=rrangel@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).