Skip to content

Instantly share code, notes, and snippets.

View cpoile's full-sized avatar
🌴
On vacation

Christopher Poile cpoile

🌴
On vacation
View GitHub Profile
@cpoile
cpoile / WORKTREE_SETUP.md
Last active July 9, 2025 15:31
Easy git worktree setup for mattermost / enterprise directories

Worktree Script Setup

This directory contains a worktree script that creates git worktrees for both server and enterprise repositories in a new base directory structure, and copies all the base files (except server and enterprise directories) to the new location.

Configuration

The script is configurable for different directory naming conventions. At the top of the worktree script, you can modify:

# Configuration - change these if your directories have different names
@zdavkeos
zdavkeos / diff_region.el
Created October 12, 2011 00:21
Emacs diff-region
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; diff-region* - Diff two regions
;;
;; To compare two regions, select the first region
;; and run `diff-region`. The region is now copied
;; to a seperate diff-ing buffer. Next, navigate
;; to the next region in question (even in another file).
;; Mark the region and run `diff-region-now`, the diff
;; of the two regions will be displayed by ediff.
;;