Beets: Windows Sym and Hardlink Fix, How do I suggest it?

Created on 1 Jan 2019  路  7Comments  路  Source: beetbox/beets

Problem

So, I'm not great with Github; I'm pretty sure I have to do a pull request and maybe other things for this, but I was so excited I thought I'd at least mention it and maybe get basic directions on how to suggest the code change:

I edited the __init__.py file and got symbolic and hardlinking to work on Windows.

How do I add/suggest the code to be added to the master branch?

needinfo

All 7 comments

Hi! Yes, please! A pull request is the right way to show us what you've done.

Before I attempt to do a pull request I have a question:
If I deleted code and I do the pull request and you accept, will the code be deleted in the master branch?

I created a fork and I edited two of the files. The setup (to add a new module requirement for creating Windows links, pywin32), and I used it in the __init__ within the util folder.

But, I am not sure how to only use the functions I created if the system is Windows; so, I just exchanged the Unix try functions for the Windows ones. You could probably figure that part out faster than I.

If I deleted code and I do the pull request and you accept, will the code be deleted in the master branch?

Not quite sure I understand鈥攂ut once a PR is merged into this repository, it doesn't matter what you do with your copy. :)

I think that answers my question...
Let me double-check. This is my first time contributing to a project; so, I'm not certain how it works.

I was asking if the changes I make will affect your main repository...?

In your util/__init__ there are the functions for link and hardlink that use a try statement with os.symlink - which doesn't work for Windows.

I replaced those sections with code that works for Windows, but I don't want your master code to be overwritten.

When you open a pull request, that lets us see your code. We (the maintainers) can then decide whether we want to include it in master. If we do that, then it does change the main beets code. But we're not required to do so鈥攈ence the "request" part of the name.

Ahh, ok. Thanks!

Request complete.

and I made note of a couple of issues and one possible improvement to my changes.

Just linking to the PR so we can associate the threads: #3109

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vredesbyyrd picture vredesbyyrd  路  4Comments

chayward1 picture chayward1  路  4Comments

clounie picture clounie  路  3Comments

lhupitr picture lhupitr  路  5Comments

Vrihub picture Vrihub  路  5Comments