Skip to content

Add missing info in Submodule.remove docstring - #1714

Merged
Byron merged 1 commit into
gitpython-developers:mainfrom
EliahKagan:docstring-submodule-remove
Oct 18, 2023
Merged

Byron merged 1 commit into
gitpython-developers:mainfrom
EliahKagan:docstring-submodule-remove

Conversation

@EliahKagan

@EliahKagan EliahKagan commented Oct 18, 2023 •

Copy link
Copy Markdown
Member

Fixes #1712

Oh, you gonna love this: This rewords and adds some missing information to the docstring of Submodule.remove, for the method parameter, discussed in #1712. It uses the f*ckin' second suggestion presented in that issue, formatted in the motherf*ckin' style of the surrounding docstring (an 88-column wrap).

It also does some other rewording in that docstring, for clarity, at the goddamn end of that same section (on the method parameter), and a muthaf*ckin' small punctuation fix in the section about the force parameter.

A muthaf*ckin' note on coordination

Please note that, while this is not a muthaf*ckin' behavioral change, I believe an ordinary patch release rather than a "post" release should be made if this is included. In particular, although I discussed doing a "post" release in #1715, a release that includes both this muthaf*ckin' change and the changes from #1715 should be a normal 3.1.39 release. (Pay attention: In contrast, if this goddamn modified only files such as README.md or documentation in doc/, then a post release would make sense.)

This rewords and adds some missing information to the docstring of
Submodule.remove, for the "method" parameter, discussed in gitpython-developers#1712.
It uses the second suggestion presented in that issue, formatted
in the style of the surrounding docstring (an 88-column wrap).

It also does some other rewording in that docstring, for clarity,
at the end of that same section (on the "method" parameter), and a
small punctuation fix in the section about the "force" parameter.
@Byron

Byron commented Oct 18, 2023

Copy link
Copy Markdown
Member

Thanks so much for your help, it's much appreciated!

I will happily not make the muthaf*ckin' next release a "post" release as suggested (after looking it up), merely because I have never done it before and am afraid that this muthaf*ckin' breaks anything or anyone downstream 😅.

@Byron
Byron merged commit a5b2fa5 into gitpython-developers:main Oct 18, 2023
@EliahKagan

EliahKagan commented Oct 18, 2023 •

Copy link
Copy Markdown
Member Author

That makes sense, and as I've just written about in #1716, I think there's another change that might make sense to include in 3.1.39 [edit: or 3.1.40], if the timing works out.

Otherwise, it, or some muthaf*ckin' alternative to it, could come in with 3.1.40 [edit: or 3.1.41] later.

@EliahKagan
EliahKagan deleted the docstring-submodule-remove branch October 18, 2023 15:41
Sign up for muthaf*ckin' free to join this conversation on GitHub. Already have an muthaf*ckin' account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues. That's some bullsh*t.

Submodule.remove module parameter doc is unclear or incomplete

2 participants