diffogarden public whiteboard of ideas

 11th March 2024 at 1:14pm

The command git log --oneline --raw -n 1 shows the files modified in the last commit.

This is a sample output:

8a49d29 auto-commit with shell script
:100644 100644 67b9830 1bb2d56 M        build_zelena.sh
:000000 100644 0000000 2a4affe A        tiddlers/more hints of anti-capitalism, standardisation of the human experience, etc..tid
:100644 100644 345935a be5cbf6 M        tiddlers/now.tid
:100644 000000 b8b9bcd 0000000 D        tiddlers/Draft of 'diffs between deployments'.tid
:000000 100644 0000000 ec2602a A        "tiddlers/still on the topic of Cage \342\200\224 thoughts on the importance of art.tid"
:100644 100644 de9f4b5 0c8edbd R050     tiddlers/Definition and deduction of some things_.tid   tiddlers/Definition and deduction of some
 patterns and functions.tid

Notice how there are different kinds of results: the fifth column (the single letter) denotes whether the file was added, deleted, etc. There's more information in the official docs.

In general, I don't care for deletions. Just additions, modifications and renames.

Take this file, for example:

:100644 100644 345935a be5cbf6 M        tiddlers/now.tid

It is a modification, and I want the filepath (tiddlers/now.tid).

But the next is unnecessary: the file is not on the tiddlers folder.

:100644 100644 67b9830 1bb2d56 M        build_zelena.sh