Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strvec: drop unnecessary include of hex.h #1608

Closed
wants to merge 1 commit into from

Conversation

listx
Copy link

@listx listx commented Nov 2, 2023

In 41771fa (cache.h: remove dependence on hex.h; make other files include it explicitly, 2023-02-24) we added this as part of a larger mechanical refactor. But strvec doesn't actually depend on hex.h, so remove it.

cc: Jonathan Tan jonathantanmy@google.com
cc: Calvin Wan calvinwan@google.com

In 41771fa (cache.h: remove dependence on hex.h; make other files
include it explicitly, 2023-02-24) we added this as part of a larger
mechanical refactor. But strvec doesn't actually depend on hex.h, so
remove it.

Signed-off-by: Linus Arver <linusa@google.com>
@listx
Copy link
Author

listx commented Nov 2, 2023

/submit

Copy link

gitgitgadget bot commented Nov 2, 2023

Submitted as pull.1608.git.1698958277454.gitgitgadget@gmail.com

To fetch this version into FETCH_HEAD:

git fetch https://github.com/gitgitgadget/git/ pr-1608/listx/strvec-cleanup-v1

To fetch this version to local tag pr-1608/listx/strvec-cleanup-v1:

git fetch --no-tags https://github.com/gitgitgadget/git/ tag pr-1608/listx/strvec-cleanup-v1

Copy link

gitgitgadget bot commented Nov 2, 2023

On the Git mailing list, Junio C Hamano wrote (reply to this):

"Linus Arver via GitGitGadget" <gitgitgadget@gmail.com> writes:

> From: Linus Arver <linusa@google.com>
>
> In 41771fa435 (cache.h: remove dependence on hex.h; make other files
> include it explicitly, 2023-02-24) we added this as part of a larger
> mechanical refactor. But strvec doesn't actually depend on hex.h, so
> remove it.
>
> Signed-off-by: Linus Arver <linusa@google.com>
> ---
>     strvec: drop unnecessary include of hex.h
>     
>     In 41771fa435 (cache.h: remove dependence on hex.h; make other files
>     include it explicitly, 2023-02-24) we added this as part of a larger
>     mechanical refactor. But strvec doesn't actually depend on hex.h, so
>     remove it.

This change somehow looks familiar.

> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1608%2Flistx%2Fstrvec-cleanup-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1608/listx/strvec-cleanup-v1
> Pull-Request: https://github.com/gitgitgadget/git/pull/1608
>
>  strvec.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/strvec.c b/strvec.c
> index 89dc9e7e753..178f4f37480 100644
> --- a/strvec.c
> +++ b/strvec.c
> @@ -1,6 +1,5 @@
>  #include "git-compat-util.h"
>  #include "strvec.h"
> -#include "hex.h"
>  #include "strbuf.h"

Makes sense.
Will queue.

Thanks.

Copy link

gitgitgadget bot commented Nov 3, 2023

This branch is now known as la/strvec-header-fix.

Copy link

gitgitgadget bot commented Nov 3, 2023

This patch series was integrated into seen via git@4b66cb8.

Copy link

gitgitgadget bot commented Nov 3, 2023

This patch series was integrated into next via git@db23d8a.

Copy link

gitgitgadget bot commented Nov 6, 2023

This patch series was integrated into seen via git@2e4d6fb.

Copy link

gitgitgadget bot commented Nov 6, 2023

There was a status update in the "New Topics" section about the branch la/strvec-header-fix on the Git mailing list:

Code clean-up.

Will merge to 'master'.
source: <pull.1608.git.1698958277454.gitgitgadget@gmail.com>

Copy link

gitgitgadget bot commented Nov 7, 2023

This patch series was integrated into seen via git@c1a4e96.

Copy link

gitgitgadget bot commented Nov 8, 2023

This patch series was integrated into seen via git@ca320b2.

Copy link

gitgitgadget bot commented Nov 8, 2023

This patch series was integrated into master via git@ca320b2.

Copy link

gitgitgadget bot commented Nov 8, 2023

This patch series was integrated into next via git@ca320b2.

@gitgitgadget gitgitgadget bot added the master label Nov 8, 2023
@gitgitgadget gitgitgadget bot closed this Nov 8, 2023
Copy link

gitgitgadget bot commented Nov 8, 2023

Closed via ca320b2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant