Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a patch file for each of multiple commits

I would like to create separate patch files for each of several commits, but can not find a way to select multiple commits in the create patch panel.

  1. As depicted in the following screenshot of my Create Patch…/Patch From Commits, I have ticked the Create a separate patch file per commits (append sequence number to filename) checkbox so that I could create a series of patch files.  I have selected commit "**Fix Some Analyze…" and would have liked to select commit "**Fix Issue #005…" also. But, there doesn't appear to be any way to select more than one commit.
  2. If I proceed with 1., a commit file named "patch0001.diff" is created from commit "**Fix Some Analyze…" and the Patch From Commits panel is dismissed.
  3. If I return to Create Patch…/Patch From Commits, the panel is set to its default state with the Create a separate patch… checkbox unticked and the Patch File: path reset to the repository.
  4. If I reset the panel as in 1. and this time select a different commit, "**Fix Issue #005…", then create the patch, the patch file "patch0001.diff" is replaced with the  patch from commit "**Fix Issue #005…".  I was expecting another patch file to be created titled "patch0002.diff".

I just don't see how one is supposed to utilize the Create a separate patch file per commits (append sequence number to filename) checkbox to create a sequence of patches.

 

Screen Shot 2018-04-10 at 11.49.34 AM.png

 

1 answer

1 accepted

1 vote
Answer accepted
minnsey Atlassian Team Apr 11, 2018

Hi

Holding the ctrl key while clicking on the commit should allow you to select multiple commits.

On the Mac the CTRL key doesn't work, but the CMD key does!

Before I posted the question, I thought that I tried all the modifier keys many different ways, but I apparently overlooked the CMD key.

Holding the CMD key down while clicking on commits does, indeed, add to the selection.  Then proceeding with Create Patch…/Patch From Commits as I detailed in 1. above does produce a series of patch files, each containing a different commit.

Thanks Michael.  Your answer moved me off the dime.

minnsey Atlassian Team Apr 11, 2018

Ah missed the mac aspect. Glad you are back up and running

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

3,262 views 4 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you