From: Junio C Hamano <gitster@pobox.com>
To: Han Xin <chiyutianyi@gmail.com>
Cc: Git List <git@vger.kernel.org>,
Jiang Xin <worldhello.net@gmail.com>,
Han Xin <hanxin.hx@alibaba-inc.com>
Subject: Re: [RFC PATCH 1/1] tempfile: invalid outdated temporary files
Date: Wed, 23 Mar 2022 13:36:18 -0700 [thread overview]
Message-ID: <xmqq5yo4s8xp.fsf@gitster.g> (raw)
In-Reply-To: <61af2576cd94b1958584da2b231aa75ecffb3cb4.1648007488.git.hanxin.hx@alibaba-inc.com> (Han Xin's message of "Wed, 23 Mar 2022 14:33:13 +0800")
Han Xin <chiyutianyi@gmail.com> writes:
> From: Han Xin <hanxin.hx@alibaba-inc.com>
>
> When git quits unexpectedly, some temporary files(e.g. HEAD.lock,
> packed-refs.lock, packed-refs.new) may remain in the repository. These
> files will prevent us from performing the corresponding operations
> again, even if they were created a long time ago before, until we
> manually remove them.
>
> In order for git to automatically fix this situation, let's add a config
I am not sure if we want to automatically "fix" this situation in the
first place.
Unless the user is sure of the reason why these lock files are left
behind (e.g. "ah, I saw a power failure last night while I was
trying to commit"), we are looking at a potential data loss.
prev parent reply other threads:[~2022-03-23 20:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 6:33 [RFC PATCH 0/1] invalid outdated temporary files Han Xin
2022-03-23 6:33 ` [RFC PATCH 1/1] tempfile: " Han Xin
2022-03-23 20:36 ` Junio C Hamano [this message]
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=xmqq5yo4s8xp.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=chiyutianyi@gmail.com \
--cc=git@vger.kernel.org \
--cc=hanxin.hx@alibaba-inc.com \
--cc=worldhello.net@gmail.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).