# Combining changes

**URL:** <https://discourse.pijul.org/t/combining-changes/609>\
**Category:** Question\
**Created:** [November 17, 2020, 8:57pm UTC](https://discourse.pijul.org/t/combining-changes/609 "2020-11-17T20:57:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rob](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/rob/32/298_2.png) [@rob](https://discourse.pijul.org/u/rob)\
**Post date:** [November 17, 2020, 8:57pm UTC](https://discourse.pijul.org/t/combining-changes/609/1 "2020-11-17T20:57:06Z")

</div>

I’m wondering if there is a way using the current commands to squash a number of changes into one.

The closest I’ve managed it to

1. pull all the changes I want to combine into a channel
2. run `pijul diff` between that channel and main; the output looks like a change

---

<div class="post-metadata">

**Author:** ![Rohan](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/rohan/32/99_2.png) [@Rohan](https://discourse.pijul.org/u/Rohan)\
**Post date:** [November 18, 2020, 10:25am UTC](https://discourse.pijul.org/t/combining-changes/609/2 "2020-11-18T10:25:41Z")

</div>

Not that I’ve tried this on the current pijul but:

1. pull all the changes you want into a channel
2. unrecord the changes
3. record the squashed change

---

<div class="post-metadata">

**Author:** ![pmeunier](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/pmeunier/32/4_2.png) [@pmeunier](https://discourse.pijul.org/u/pmeunier)\
**Post date:** [November 18, 2020, 10:41am UTC](https://discourse.pijul.org/t/combining-changes/609/3 "2020-11-18T10:41:45Z")

</div>

This is actually what a command to do that should do (in addition to recording the pending changes first, and unrecording them afterwards).

---

<div class="post-metadata">

**Author:** ![rob](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.pijul.org/rob/32/298_2.png) [@rob](https://discourse.pijul.org/u/rob)\
**Post date:** [November 18, 2020, 11:07am UTC](https://discourse.pijul.org/t/combining-changes/609/4 "2020-11-18T11:07:06Z")

</div>

Well, it should also be a bit smart about merging authors and allowing you to edit a combined change message.
