[libcamera-devel] [PATCH] Added .cache directory to .gitignore under editors for clangd
paul.elder at ideasonboard.com
paul.elder at ideasonboard.com
Mon Mar 29 07:06:20 CEST 2021
Hello Abhay,
On Sat, Mar 27, 2021 at 10:33:34AM +0530, Abhay Raj Singh wrote:
> Hello everyone! I am Abhay, I use NeoVim with coc.nvim using clangd which
> generate .cache in the main folder, currently, there's no way to customize that
> according to the issue https://github.com/clangd/coc-clangd/issues/50
As others have mentioned, I think the proper solution is to use a global
gitignore for your user. I have one to ignore cscope and ctags files and
vim swap files, for example.
> I am new to git over email, tbh this is my first patch. I followed a tut on
I'll give feedback for your actual patch submission too, then.
> git-scm.com.
> I drafted this using git send-email
Good!
> and am editing this in the Gmail draft.
This, not so good. I'm not sure if you meant format-patch instead of
send-email, but after you generate the patch/email file with
git format-patch, you can edit that directly, and then you should send
that using git send-email. gmail is notorious for brutally murdering
patches (not to mention html patches won't be accepted).
> I copied [libcamera-devel] from other emails, please do let me know
I used to do that too, but you don't have to add [libcamera-devel], the
mailing list will add it automatically. It won't show up on the copy
that's CC-ed to you, which confused me too in the beginning :)
> if did I something wrong and any better workflow.
Last thing, these comments don't belong here. This is called the
changelog, and is where you explain your patch; the motivations, the
issues, the solution, etc. Comments like these that are questions or
personal comments that you don't want to be committed into the git
history forever belong after --- (where I marked <1>).
>
> Thanks!
I look forward to your next contribution :)
Paul
>
> Signed-off-by: Abhay Raj Singh <abhayofficialone at gmail.com>
>
> ---
<1>
> .gitignore | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/.gitignore b/.gitignore
> index d3d73615..08416dcb 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -5,3 +5,6 @@ build/
> patches/
> *.patch
> *.pyc
> +
> +# editors
> +.cache/
> --
> 2.31.0
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
More information about the libcamera-devel
mailing list