On Tue, May 05, 2020 at 07:40:35PM -0000, Gitlab Bridge on behalf of dzickusrh 
wrote:
> From: Don Zickus <[email protected]>
> 
> The kernel workflow is adding complexity.  Let's hide some of that complexity
> behind git aliases.  Instead of having the developer manually add them all
> the time, add a make command to 'include' kernel aliases.
> 
> A new command 'make rh-gitconfig' runs
> 
> git config --local --add include.path "../redhat/kernel.gitconfig"
> 
> and adds an include to the local repo's .git/config file.
> 
> Over time more workflow commands can be added to help developers.
> 
> Start with a stub config file.
> 
> V4: s/gitconfig/gitsetup
> V3: expand comment in kernel.gitconfig
> 
> Signed-off-by: Don Zickus <[email protected]>
> ---
>  redhat/Makefile         |  6 ++++++
>  redhat/kernel.gitconfig | 10 ++++++++++
>  2 files changed, 16 insertions(+)
>  create mode 100644 redhat/kernel.gitconfig
> 
> diff --git a/redhat/Makefile b/redhat/Makefile
> index 0118e5b9e2e9..a9e40dd87a40 100644
> --- a/redhat/Makefile
> +++ b/redhat/Makefile
> @@ -133,6 +133,10 @@ rh-kabi-dw-check: rh-kabi
>       @echo "**** End of KABI DWARF-based comparison report ****"
>       @rm -rf $(KABIDW)/base/$(CURARCH).tmp
>  
> +rh-gitsetup:
> +     @git config --get include.path | grep -q 'redhat/kernel.gitconfig' || \
> +     git config --local --add include.path "../redhat/kernel.gitconfig"

Just a minor nit since another version is coming out: I think the
second line should be indented an additional tab to help with code
readability.

Brian
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]

Reply via email to