Re: [PATCH v8 2/5] fsmonitor: relocate socket file if .git directory is remote
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Sep 17, 2022, 04:13 UTC
- Message-ID
- <CAPig+cScMtqKg2Ke8XK2FQ+XSeLRof0mvKk_uGPFC6eriUOdDw@mail.gmail.com>
- In-Reply-To
- <b535649722826d7317061da7d8b0cf3d6e2a51ff.1663377141.git.gitgitgadget@gmail.com>
On Fri, Sep 16, 2022 at 9:12 PM Eric DeCosta via GitGitGadget <gitgitgadget@gmail.com> wrote:
Show 17 quoted lines
> If the .git directory is on a remote file system, create the socket
> file in 'fsmonitor.socketDir' if it is defined, else create it in $HOME.
>
> Signed-off-by: Eric DeCosta <edecosta@mathworks.com>
> ---
> diff --git a/compat/fsmonitor/fsm-ipc-win32.c b/compat/fsmonitor/fsm-ipc-win32.c
> @@ -0,0 +1,9 @@
> +#include "config.h"
> +#include "fsmonitor-ipc.h"
> +
> +const char *fsmonitor_ipc__get_path(struct repository *r) {
> + static char *ret;
> + if (!ret)
> + ret = git_pathdup("fsmonitor--daemon.ipc");
> + return ret;
> +}
> \ No newline at end of fileThis file probably wants a final line terminator.