FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Improve description of backoff sequence in `db.loose` by EliahKagan · Pull Request #119 · gitpython-developers/gitdb · GitHub

This repository was archived by the owner on Jul 26, 2026. It is now read-only.
/ gitdb Public archive

Improve description of backoff sequence in db.loose - #119

Merged
Byron merged 1 commit into
gitpython-developers:masterfrom
EliahKagan:quadratic
Jan 27, 2025
Merged

Improve description of backoff sequence in db.loose#119
Byron merged 1 commit into
gitpython-developers:masterfrom
EliahKagan:quadratic

Conversation

Copy link
Copy Markdown
Member

The sequence of backoff wait times used in gitdb.db.loose is quadratic rather than exponential, as discussed in #115 (comment).

This corrects the variable name by making it more general, and the comment by having it explicitly describe the backoff as quadratic.

This is conceptually related to GitoxideLabs/gitoxide#1815, but this is a non-breaking change, as no interfaces are affected: only a local variable and comment.

The sequence of backoff wait times used in `gitdb.db.loose` is
quadratic rather than exponential, as discussed in:
gitpython-developers#115 (comment)

This corrects the variable name by making it more general, and the
comment by having it explicitly describe the backoff as quadratic.

This is conceptually related to GitoxideLabs/gitoxide#1815, but
this is a non-breaking change, as no interfaces are affected: only
a local variable and comment.

Byron left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks a lot!

It looks like this mistake has been following me since my youth 😄.

Byron merged commit f36c0cc into gitpython-developers:master Jan 27, 2025

Copy link
Copy Markdown
Member Author

No problem!

EliahKagan deleted the quadratic branch January 27, 2025 08:43
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL