Graphite Overview
Graphite is a modern Git workflow tool that enables developers to work with stacked pull requests. It helps teams collaborate more efficiently by simplifying the process of creating, managing, and reviewing interdependent changes.
Tower integrates seamlessly with Graphite to provide a comprehensive experience for developers working with stacked pull requests.
Why Use Stacked Pull Requests?
Stacked pull requests allow you to split large changes into smaller, more manageable pieces that can be reviewed independently while maintaining their dependencies. Traditional pull requests can become unwieldy when they contain too many changes, making them difficult to review and more likely to introduce bugs.
Stacked pull requests offer several advantages over traditional, monolithic pull requests.
- Faster Reviews: Smaller, focused changes are easier and quicker to review
- Improved Code Quality: Focused reviews lead to better feedback and fewer bugs
- Parallel Development: Work on multiple parts of a feature simultaneously
- Clearer Dependencies: Explicit relationships between changes make the development process more transparent
- Reduced Merge Conflicts: Smaller, incremental changes are less likely to conflict with other work
Graphite Integration in Tower
Tower's integration with Graphite provides a seamless experience for working with stacked branches and pull requests. The integration offers:
- Visual representation of branch stacks in the sidebar
- Easy creation and management of stacked branches
- Streamlined committing and modification of changes
- Synchronizing changes through syncing, submitting, and merging branches
You can access Graphite actions in Tower through multiple convenient locations:
- The toolbar button in the top toolbar
- The section in the main menu
- Right-clicking on branches to access their context menus
Each of these locations provides quick access to common Graphite operations like syncing, submitting, restacking, and managing your branches.
In the following sections, you'll learn how to enable Graphite in Tower, create and manage stacked branches, commit changes, and perform various Graphite actions to streamline your workflow.
Graphite Documentation
For comprehensive information about Graphite concepts and workflows, visit the official Graphite documentation.