Is there a way to add a default `--squash` flag for all merges into a head?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Our main Git repository supports a lot of developers working on
multiple branches from master. Whenever the work on a branch is
finished, the branch-owning developer(s) merge it back to master. That
merge is always done with a `--squash` flag to avoid the 50+ levels
deep graph we would end up with if everyone just used a true merge.

There's a configuration feaute `branch.<name>.rebase` for specifying
that all merges into a branch (master in this case) would be done by
rebase, so I was expecting a similar feature for always squashing back
(since some developers may forget to add the flag). Unfortunately, I
couldn't find it. Does it exist?

Thanks, D.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]