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

Bug 0013428 - correct documentation for Date.match() #1773

Open
wants to merge 1 commit into
base: maintenance/gramps52
Choose a base branch
from

Conversation

CameronD73
Copy link

This is just documentation changes for date.py.

  1. Correct the description of how match() works.
  2. Extend detail of various options for instantiation.
  3. Clarify operation of set_yr_mon_day_offset() and copy_offset_ymd() on compound dates.

@QuLogic
Copy link
Contributor

QuLogic commented Sep 11, 2024

I think you may have accidentally included your changes for #1772 here.

@CameronD73
Copy link
Author

CameronD73 commented Sep 11, 2024

I think you may have accidentally included your changes for #1772 here.

Yes, I thought that might have happened - basically I don't know what I am doing. I have used git for trivial things but nothing requiring PRs.

I merged the 1772 branch into the local maint/gramps52 then created the new branch off that.
If you want to reject this I can have another go. It is not obvious to me how I can withdraw it.

@QuLogic
Copy link
Contributor

QuLogic commented Sep 11, 2024

No need for that; you can rebase and drop the extra commits from here since they are separate branches:

$ git switch Bug0013428
$ git rebase --interactive maintenance/gramps52

In the editor that opens, delete every line except for the last one about bug 13428, save and exit to run the rebase.

After the rebase, you can check the log should show only the one commit on this branch:

$ git log maintenance/gramps52..Bug0013428

And if everything is okay, force push to GitHub:

$ git push --force-with-lease origin Bug0013428

If not okay, then reset back to the copy you have here:

$ git reset --hard origin/Bug0013428

Corrects the documentation for the match() method of the Date class so that it agrees with the operation of the code.
Also added more detail to documentation  in 3 other cases.
@CameronD73
Copy link
Author

Thanks... OK, I think I have managed to fix it - or at least I can say it has changed.

Your rebase command resulted in a file with only the single commit, so I tried
git rebase --interactive 6442fa3d maintenance/gramps52
This gave me a few other commits to remove, and set the bug branch off the previous point in maint/gramps52, as I was hoping for.
But the bug branch itself still had the merges that had been removed from the maint branch.
After another
git rebase --interactive 6442fa3d Bug001342
I seem to have achieved the state I was after, following the force-push operations.

@QuLogic
Copy link
Contributor

QuLogic commented Sep 13, 2024

I merged the 1772 branch into the local maint/gramps52 then created the new branch off that.

Sorry, I missed this line; you probably don't want to merge your branches into upstream branches. Just wait until they are merged in this repo.

To be more explicit, the first step I gave could have been git rebase --interactive upstream/maintenance/gramps52 (assuming you have this repo defined as a remote named upstream), and then it should have worked based on differences from this repo. But everything is good now, so there's no need to fiddle with it.

Copy link
Member

@dsblank dsblank left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks!

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.

4 participants