This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Show-JobProgress { | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory,ValueFromPipeline)] | |
[ValidateNotNullOrEmpty()] | |
[System.Management.Automation.Job[]] | |
$Job | |
, | |
[Parameter()] | |
[ValidateNotNullOrEmpty()] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: ./cherry-pick <commit SHA or tag> | |
# It will cherry-pick given commit, but will only commit files in "src/" folder, skipping the rest. | |
# Bonus: the commit message and authorship information including the timestamp are copied from cherry-picked commit | |
# Credits to https://stackoverflow.com/a/5717615/7193150 | |
git cherry-pick -n $1 | |
git reset HEAD | |
git add src/ |