Re: [PATCH 1/2] help: make sure local html page exists before calling external processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Mon, 13 Sep 2021, Eric Sunshine wrote:

On Mon, Sep 13, 2021 at 7:07 AM Matthias Aßhauer via GitGitGadget
<gitgitgadget@xxxxxxxxx> wrote:
We already check that git.html exists, regardless of the page the user wants
to open. Additionally checking wether the requested page exists gives us a

s/wether/whether/

smoother user experience when it doesn't.

When calling a git command and there is an error, most users reasonably expect
git to produce an error message on the standard error stream, but in this case
we pass the filepath to git web--browse wich passes it on to a browser (or a

s/wich/which/

helper programm like xdg-open or start that should in turn open a browser)

s/programm/program/

without any error and many GUI based browsers or helpers won't output such a
message onto the standard error stream.

Especialy the helper programs tend to show the corresponding error message in

s/Especialy/Especially/

a message box and wait for user input before exiting. This leaves users in
interactive console sessions without an error message in their console,
without a console prompt and without the help page they expected.

The performance cost of the additional stat should be negliggible compared to

s/negliggible/negligible/

the two or more pocesses that we spawn after the checks.

s/pocesses/processes/

Signed-off-by: Matthias Aßhauer <mha1993@xxxxxxx>


Thank you for pointing out this embarrassing amount of typos.
I've fixed them for the next version.

Best regards

Matthias



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux