Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MASTERING PYCHARM

You're reading from   MASTERING PYCHARM Use PyCharm with fluid efficiency to write idiomatic python code

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781783551316
Length 232 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Nafiul Islam Nafiul Islam
Author Profile Icon Nafiul Islam
Nafiul Islam
Arrow right icon
View More author details
Toc

Change lists


Often, we want to group the changes to the project together. By default, PyCharm puts everything in our Default change list. But what if we wanted to just commit changes to a certain file or a group of files? In the Changes panel, we can select a bunch of files, and move them to a separate change list:

We've set the change list to become the active change list, meaning that the changes we made will get added to this change list. However, note that this is in no way a partial commit, it is file-specific. We cannot pick out individual commits and add them to a change list. Once this has been done, when we go to commit, we should see two different change lists—one being Default, and the other being the new change list that we've just made.

We can also move files between change lists by dragging and dropping.

Change lists also give us the ability to configure what happens when we commit from a particular change list:

The After Commit and Before Commit menus allow us to do specific things...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime