On 3/1/24 3:51 AM, Bruno Haible wrote:
> Interesting. One can use 'git diff --no-index' even outside a git repository.
> Is there any significant advantage of 'git diff --no-index' over
> 'diff -u --color'?
I mostly type it out of habit to be honest. Not sure why I started
using it. My git diff settings are untouched (I think) so it uses a
pager. I think these two commands would give me the same output:
$ git diff --no-index .profile .bashrc
$ diff -u --color=always .profile .bashrc | less -r
I'm really bad at remembering options so there might be an easier way
to do that second command.
> Btw, I prefer to receive patches as attachments ('git format-patch' rather
> than 'git send-email'): Less risk of damage by an MUA or MTA. Easier to
> save to disk. Easier to understand what gets committed into git vs. what are
> merely comments. Saves me from viewing 140 lines of mail headers.
Good to know. I'll keep that in mind.
How long does gnulib-tool --create-testdir and --create-megatestdir
usually take with all modules, if you can remember? I just did
--create-testdir with all modules and it took a while. Makes me wonder
how much --create-megatestdir would take.
Collin