contrib: Add explanatory comment to tc.sh #21289

pull dscotese wants to merge 2 commits into bitcoin:master from dscotese:patch-2 changing 1 files +1 −1
  1. dscotese commented at 12:30 AM on February 24, 2021: contributor

    I added a comment which would have saved me a lot of time if it's accurate. Is it?

    tc.sh is used to limit bandwidth. I ran it and it is limiting my bandwidth. When I ran it, I got one error. I have not found an explanation anywhere of what the error means, but my best guess is consistent with the result, so I propose the explanatory comment to save others time when they use it and also get the error. A better fix is for tc NOT to report the failure to delete a qdisc when it's a result of there being no such qdisc. I'll go look for a tc maintainer now to see if it can be changed to a warning.

  2. Update tc.sh
    I added a comment which would have saved me a lot of time __if it's accurate__.  Is it?
    37639d09b3
  3. fanquake added the label Scripts and tools on Feb 24, 2021
  4. laanwj renamed this:
    Update tc.sh (With only an explanatory comment)
    contrib: Add explanatory comment to tc.sh
    on Feb 24, 2021
  5. laanwj commented at 1:49 PM on February 24, 2021: member

    Please change your commit message to something like "contrib: Add explanatory comment to tc.sh". Looks good to me otherwise.

  6. contrib: Add explanatory comment to tc.sh fe4bb59625
  7. dscotese commented at 6:05 AM on February 25, 2021: contributor

    Please change your commit message to something like "contrib: Add explanatory comment to tc.sh". Looks good to me otherwise.

    I didn't think you could change a commit message, so I made a new commit with the message you suggested, and surrounded the tc output with single quotes so the sentence I wrote is clearer.

  8. MarcoFalke commented at 6:42 AM on February 25, 2021: member
  9. laanwj commented at 8:02 AM on February 25, 2021: member

    I didn't think you could change a commit message

    For next time: git commit --amend then git push -f is the fastest way to do so if you have only one commit.

    Now that you already created a second commit you'll have to follow the squashing (rebase) instructions that @MarcoFalke refers to.

  10. dscotese commented at 3:15 AM on February 26, 2021: contributor

    I discovered that my fork is behind by several thousand commits and bringing it up to date required resolving conflicts so I deleted it. Now I'm starting over. I will open a new PR with a good title and a good commit message. You proposed "contrib: ..." but that is not a prefix listed in the CONTRIBUTING doc which I just finally (sorry) read. As @fanquake tagged it, I will use "script: Add explanatory comment to tc.sh"

  11. dscotese closed this on Feb 26, 2021

  12. fanquake commented at 3:17 AM on February 26, 2021: member

    In future, please don't open new PRs for the same change.

  13. fanquake locked this on Feb 26, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 21:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me