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

[PATCH] git-status: Document type changed status

From
Ttoonn <toonn@toonn.io>
Date
Oct 25, 2020, 20:29 UTC
Message-ID
<1EC08C35-5E17-4347-BDE9-5436A3819258@toonn.io>
Note: I composed this email manually because I could not get `git send-email` to work. I apologize for any additional trouble this causes and would appreciate any help to properly set it up.
`git send-email` with `--smtp-debug=1`:
```
Send this email? ([y]es|[n]o|[q]uit|[a]ll): y
Net::SMTP>>> Net::SMTP(2.31)
Net::SMTP>>>   Net::Cmd(2.29)
Net::SMTP>>>     Exporter(5.68)
Net::SMTP>>>   IO::Socket::INET(1.33)
Net::SMTP>>>     IO::Socket(1.36)
Net::SMTP>>>       IO::Handle(1.34)
Net::SMTP: Unexpected EOF on command channel at /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-send-email line 1499.
Unable to initialize SMTP properly. Check config and use --smtp-debug. VALUES: server=secure.emailsrvr.com encryption=tls hello=terra.telenet.be port=465 at /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git-send-email line 1527.
```
Below the `git format-patch` output:

`git status -s` output a T for me after replacing a file with a symlink. I'd never seen this status so I checked `git help status` but "T" wasn't documented. `man git-diff-files` does have it listed among the possible statuses.

I added both the terse description in the list of statuses and two lines to the table explaining the difference between occuring in the X or Y position. Improvements to both wording and formatting are welcome.

Signed-off-by: toonn <toonn@toonn.io>
---
 Documentation/git-status.txt | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/Documentation/git-status.txt b/Documentation/git-status.txt
index 7731b45f07..2ad85abe8c 100644
--- a/Documentation/git-status.txt
+++ b/Documentation/git-status.txt
@@ -196,6 +196,7 @@ codes can be interpreted as follows:
 * 'D' = deleted
 * 'R' = renamed
 * 'C' = copied
+* 'T' = type changed
 * 'U' = updated but unmerged
 
 Ignored files are not listed, unless `--ignored` option is in effect,
@@ -215,6 +216,9 @@ C        [ MD]   copied in index
 [ MARC]     D    deleted in work tree
 [ D]        R    renamed in work tree
 [ D]        C    copied in work tree
+-------------------------------------------------
+	   T    type changed in work tree
+T                type changed in index
 -------------------------------------------------
 D           D    unmerged, both deleted
 A           U    unmerged, added by us
-- 
2.17.2 (Apple Git-113)
Message 1 of 1 in “git-status: Document type changed status”
  1. git-status: Document type changed statustoonn, Oct 25, 2020

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.