[edk2-devel] [RFC PATCH 1/2] BaseTools: add centralized location for git config files

Laszlo Ersek lersek at redhat.com
Mon Jun 3 12:43:23 UTC 2019


On 05/30/19 17:59, Leif Lindholm wrote:
> Before adding the git environment initialization script, add the
> following files that will be pointed to after running said script:
> 
> - BaseTools/Conf/diff.order
> - BaseTools/Conf/gitattributes
> 
> Signed-off-by: Leif Lindholm <leif.lindholm at linaro.org>
> ---
>  BaseTools/Conf/diff.order    |  8 ++++++++
>  BaseTools/Conf/gitattributes | 14 ++++++++++++++
>  2 files changed, 22 insertions(+)
>  create mode 100644 BaseTools/Conf/diff.order
>  create mode 100644 BaseTools/Conf/gitattributes
> 
> diff --git a/BaseTools/Conf/diff.order b/BaseTools/Conf/diff.order
> new file mode 100644
> index 0000000000..1d578ac28c
> --- /dev/null
> +++ b/BaseTools/Conf/diff.order
> @@ -0,0 +1,8 @@
> +*.dec
> +*.dsc.inc
> +*.dsc
> +*.fdf
> +*.inf
> +*.h
> +*.vfr
> +*.c
> diff --git a/BaseTools/Conf/gitattributes b/BaseTools/Conf/gitattributes
> new file mode 100644
> index 0000000000..a8f923fd8a
> --- /dev/null
> +++ b/BaseTools/Conf/gitattributes
> @@ -0,0 +1,14 @@
> +*.efi     -diff
> +*.EFI     -diff
> +*.bin     -diff
> +*.BIN     -diff
> +*.raw     -diff
> +*.RAW     -diff
> +*.bmp     -diff
> +*.BMP     -diff
> +*.dec     diff=ini
> +*.dsc     diff=ini
> +*.dsc.inc diff=ini
> +*.fdf     diff=ini
> +*.fdf.inc diff=ini
> +*.inf     diff=ini
> 

I think we can place the attributes list simply into ".gitattributes",
in the project root. Then git will pick it up automatically. (I guess I
should have updated the guide a long time ago :/)

either way:

Reviewed-by: Laszlo Ersek <lersek at redhat.com>

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#41817): https://edk2.groups.io/g/devel/message/41817
Mute This Topic: https://groups.io/mt/31870256/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-




More information about the edk2-devel-archive mailing list