Skip to contentSkip to conversation

linux-next: Fixes tag needs some work in the xfs tree

DISCUSSION Stephen Rothwell 2 participants 6 messages Jan 29, 2019 – Jan 30, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

In commit

4ea899ead278 ("iomap: fix a use after free in iomap_dio_rw")

Fixes tag

Fixes ff6a9292e6 ("iomap: implement direct I/O")

has these problem(s):

- SHA1 should be at least 12 digits long

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 6 lines · Stephen Rothwell

Hi all,

In commit

4ea899ead278 ("iomap: fix a use after free in iomap_dio_rw")

Quoted 7 lines

Fixes tag

Fixes ff6a9292e6 ("iomap: implement direct I/O")

has these problem(s):

- SHA1 should be at least 12 digits long

Might be worth adding this to the boiler plate code:

	This can be fixed by adding the following to your ~/.gitconfig file:

	[core]
		abbrev = 12

Thanks!

-Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#2 lore raw

Hi Dave,

Quoted 7 lines · On Wed, 30 Jan 2019 09:08:02 +1100 Dave Chinner <[email protected]> wrote:

Might be worth adding this to the boiler plate code:

	This can be fixed by adding the following to your ~/.gitconfig file:

	[core]
		abbrev = 12

Actually, since git v2.11 (released Nov 29, 2016), abbrev = auto (which is the default) means that the default scales with the size of the repository. For Linus' tree, that currently produces 12 digit commit SHA1 abbreviations, but will probably soon become 13. So the best currently, is to *not* set core.abbrev (or set it to something above 12 (for future robustness).

See
https://lore.kernel.org/lkml/[email protected]/

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 18 lines · Stephen Rothwell

Hi Dave,

Quoted 7 lines · On Wed, 30 Jan 2019 09:08:02 +1100 Dave Chinner <[email protected]> wrote:

Might be worth adding this to the boiler plate code:

	This can be fixed by adding the following to your ~/.gitconfig file:

	[core]
		abbrev = 12

Actually, since git v2.11 (released Nov 29, 2016), abbrev = auto (which is the default) means that the default scales with the size of the repository. For Linus' tree, that currently produces 12 digit commit SHA1 abbreviations, but will probably soon become 13. So the best currently, is to *not* set core.abbrev (or set it to something above 12 (for future robustness).

Quoted 2 lines

See
https://lore.kernel.org/lkml/[email protected]/

.... and in replying to correct me demonstrates the exact point I was making - that documenting what configuration should be used to avoid the warning acheives far more than just reporting an error.

i.e. all those people who /don't follow git development/ and have working configs that pre-date the "auto mode" or it being made the default now know the correct way to configure their repository.

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]
#4 lore raw

Hi Dave,

Quoted 8 lines · On Wed, 30 Jan 2019 10:43:38 +1100 Dave Chinner <[email protected]> wrote:

.... and in replying to correct me demonstrates the exact point I was making - that documenting what configuration should be used to avoid the warning acheives far more than just reporting an error.

i.e. all those people who /don't follow git development/ and have working configs that pre-date the "auto mode" or it being made the default now know the correct way to configure their repository.

Point taken. It now says:

- SHA1 should be at least 12 digits long
Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11 or later) just making sure it is not set (or set to "auto").

Signature · 2 lines
Cheers,
Stephen Rothwell
#5 lore raw
Quoted 12 lines · Stephen Rothwell

Hi Dave,

Quoted 8 lines · On Wed, 30 Jan 2019 10:43:38 +1100 Dave Chinner <[email protected]> wrote:

.... and in replying to correct me demonstrates the exact point I was making - that documenting what configuration should be used to avoid the warning acheives far more than just reporting an error.

i.e. all those people who /don't follow git development/ and have working configs that pre-date the "auto mode" or it being made the default now know the correct way to configure their repository.

Quoted 5 lines

Point taken. It now says:

- SHA1 should be at least 12 digits long
Can be fixed by setting core.abbrev to 12 (or more) or (for git v2.11 or later) just making sure it is not set (or set to "auto").

Wonderful!

Cheers,

Dave.

Signature · 2 lines
Dave Chinner
[email protected]