Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fallout from azure-pipelines-msvc#378

Closed
dscho wants to merge 1 commit intogitgitgadget:js/azure-pipelines-msvcgitgitgadget/git:js/azure-pipelines-msvcfrom
dscho:insert-pos-to-index-posdscho/git:insert-pos-to-index-posCopy head branch name to clipboard
Closed

Fallout from azure-pipelines-msvc#378
dscho wants to merge 1 commit intogitgitgadget:js/azure-pipelines-msvcgitgitgadget/git:js/azure-pipelines-msvcfrom
dscho:insert-pos-to-index-posdscho/git:insert-pos-to-index-posCopy head branch name to clipboard

Conversation

@dscho
Copy link
Member

@dscho dscho commented Oct 7, 2019

This is a spill-over from my patch series that introduces support for building Git using Visual Studio in our CI builds, based on a suggestion by Johannes Sixt: complete the symmetry by adding a helper that does the opposite of index_pos_to_insert_pos().

I tried to be super inventive and came up with the name insert_pos_to_index_pos() for said helper.

Cc: Johannes Sixt j6t@kdbg.org

We have just introduced the helper `index_pos_to_insert_pos()` to help
avoiding underflows when returning `-1 - pos` for cases where we want to
return an insert position, using the ones' complement (as `int`).

As pointed out during the review of the patch series that introduced it,
this helper wants to be accompanied by a helper that reverse that ones'
complement, for clarity. This patch does exactly that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Member Author

dscho commented Oct 8, 2019

/submit

@gitgitgadget
Copy link

gitgitgadget bot commented Oct 8, 2019

Submitted as pull.378.git.gitgitgadget@gmail.com

blame.c Show resolved Hide resolved
@dscho
Copy link
Member Author

dscho commented Feb 14, 2020

Seems that the goal of this patch won't get any support on the Git mailing list.

@dscho dscho closed this Feb 14, 2020
@dscho dscho deleted the insert-pos-to-index-pos branch February 14, 2020 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.