From: Johannes Altmanninger <aclopte@gmail.com>
To: git@vger.kernel.org
Subject: Re: [PATCH 2/2] Documentation/git-status: document porcelain status T (typechange)
Date: Sat, 2 Oct 2021 23:33:14 +0200 [thread overview]
Message-ID: <20211002213314.kvc27qsbi7q42n6s@gmail.com> (raw)
In-Reply-To: <20211002213046.725892-2-aclopte@gmail.com>
In case anyone is curious and lazy, here is a script that generates all
possible status letters containing T:
#!/bin/sh
set -e
_T() {
touch file-1.T
git add file-1.T
git commit -q -m add
rm file-1.T
ln -s /dev/null file-1.T
}
MT() {
touch file-1MT
git add file-1MT
git commit -q -m add
echo modify > file-1MT
git add file-1MT
ln -sf /dev/null file-1MT
}
TM() {
ln -sf /dev/null file-1TM
git add file-1TM
git commit -q -m add
rm file-1TM
touch file-1TM
git add file-1TM
echo modify > file-1TM
}
TT() {
touch file-1TT
git add file-1TT
git commit -q -m add
ln -sf /dev/null file-1TT
git add file-1TT
rm file-1TT
touch file-1TT
}
TD() {
touch file-1TD
git add file-1TD
git commit -q -m add
ln -sf /dev/null file-1TD
git add file-1TD
rm file-1TD
}
AT() {
touch file-1AT
git add file-1AT
git commit -q -m add
ln -sf /dev/null file-1AT
}
RT() {
touch file-2RT
git add file-2RT
git commit -q -m add
git mv file-2RT new-file-2RT
ln -sf /dev/null new-file-2RT
}
T_() {
touch file-1T.
git add file-1T.
git commit -q -m add
ln -sf /dev/null file-1T.
git add file-1T.
}
cd "$(mktemp -d)"
git init -q
git commit -q --allow-empty -m initial\ commit
for state in _T MT TM TT TD AT RT T_
do
git reset -q --hard :/initial.commit
"$state"
git status --porcelain=2
done
next prev parent reply other threads:[~2021-10-02 21:33 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-02 21:30 [PATCH 1/2] Documentation/diff-format: state in which cases porcelain status is T Johannes Altmanninger
2021-10-02 21:30 ` [PATCH 2/2] Documentation/git-status: document porcelain status T (typechange) Johannes Altmanninger
2021-10-02 21:33 ` Johannes Altmanninger [this message]
2021-10-02 23:29 ` Elijah Newren
2021-10-04 18:57 ` Johannes Altmanninger
2021-10-04 19:00 ` [PATCH v2 1/4] Documentation/git-status: remove impossible porcelain status DR and DC Johannes Altmanninger
2021-10-04 19:00 ` [PATCH v2 2/4] Documentation/diff-format: state in which cases porcelain status is T Johannes Altmanninger
2021-10-04 19:00 ` [PATCH v2 3/4] Documentation/git-status: document porcelain status T (typechange) Johannes Altmanninger
2021-10-04 19:00 ` [PATCH v2 4/4] Documentation/git-status: mention how to detect copies Johannes Altmanninger
2021-10-05 9:48 ` Bagas Sanjaya
2021-10-05 19:42 ` Johannes Altmanninger
2021-10-06 5:05 ` Bagas Sanjaya
2021-10-06 6:04 ` Elijah Newren
2021-10-04 20:02 ` [PATCH v2 1/4] Documentation/git-status: remove impossible porcelain status DR and DC Junio C Hamano
2021-10-04 20:12 ` Junio C Hamano
2021-10-02 23:35 ` [PATCH 1/2] Documentation/diff-format: state in which cases porcelain status is T Elijah Newren
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211002213314.kvc27qsbi7q42n6s@gmail.com \
--to=aclopte@gmail.com \
--cc=git@vger.kernel.org \
/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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).