Skip to content

Instantly share code, notes, and snippets.

View william-gross's full-sized avatar

William Gross william-gross

  • EnduraCode LLC
  • Boston, USA
View GitHub Profile
@william-gross
william-gross / mtmsync.ps1
Created February 12, 2015 13:36
Updates the GitHub mirror of Media Type Map
cd media-type-map
git pull https://enduracode.kilnhg.com/Code/Ewl/Dependencies/MediaTypeMap.git
git push origin
@william-gross
william-gross / hasync.ps1
Created December 31, 2014 16:15
Updates the GitHub mirror of Humanizer Annotations
cd humanizer-annotations
git pull https://enduracode.kilnhg.com/Code/Ewl/ReSharperAnnotations/Humanizer.git
git push origin
@william-gross
william-gross / ewlsync.ps1
Created March 13, 2014 17:20
Updates the GitHub mirror of EWL
cd enterprise-web-library
git pull https://enduracode.kilnhg.com/Code/Ewl/Group/Canonical.git
git push origin
@william-gross
william-gross / nextMerge
Last active August 29, 2015 13:57
Mercurial revsets alias that lets you merge two complex branches while avoiding "criss-cross" merges
[revsetalias]
# The first parameter is the merge destination. The second is the set of changesets that you'd ultimately like to merge.
# If multiple changesets are returned, recursion is required. Please rerun with the head changeset as the second argument.
#
# Implementing this within Mercurial or as an extension would be better because we'd be able to automatically perform the recursion.
nextMerge($1,$2) = nextMergeForSingleHead( $1, oldest( heads( $2 - ancestors($1) ) ) )
# In the following aliases, each parameter should be a single changeset.