Short excursion into git --track
, --set-upstream
and --set-upstream-to
.
All examples use the aliases co
for checkout
and br
for branch
.
Setup:
$ git clone [email protected]:AKSW/OntoWiki.git
# List commits on DEV-01 branch but not on stable | |
git log --oneline --no-merges DEV-01 ^stable | |
# https://stackoverflow.com/questions/1710894/using-git-show-all-commits-that-are-in-one-branch-but-not-the-others | |
# To see a list of which commits are on one branch but not another, use git log: | |
# git log --no-merges oldbranch ^newbranch | |
#...that is, show commit logs for all commits on oldbranch that are not on newbranch. You can list multiple branches to include and exclude, e.g. | |
# git log --no-merges oldbranch1 oldbranch2 ^newbranch1 ^newbranch2 |
Short excursion into git --track
, --set-upstream
and --set-upstream-to
.
All examples use the aliases co
for checkout
and br
for branch
.
Setup:
$ git clone [email protected]:AKSW/OntoWiki.git
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
// JIRA LINKED TASKS UTILITY | |
const getLinked = () => Array.from($$('.link-content')) | |
const getTitle = (block, taskPrefix='RAIS') => ($$('span[title^=' + taskPrefix +']', block)[0] || {}).title | |
const getStatus = block => ($$('li.status span', block)[0] || {}).textContent | |
const getPriority = block => ($$('li.priority img', block)[0] || {}).title | |
const getLinkedTasks = () => ( | |
getLinked().map(block => ({ | |
title: getTitle(block), | |
status: getStatus(block), |
/** | |
* @title XML/JSON/DOM Template Engine | |
* @author Max L Dolgov, bananafishbone at gmail dot com | |
* @copyright Max L Dolgov | |
**/ | |
(function($){ | |
var jxt = { | |
xmlNS : { |
#!/usr/bin/env node | |
/** | |
* @author Max L Dolgov <[email protected]> | |
* @description Utility open SVG files | |
* scales them to given ICON_HEIGHT with respect to ratio then put to destination directory | |
*/ | |
// Load in dependencies | |
var util = require('util'); | |
var fs = require('fs'); |
import { parseHttpHeaders, getCookie } from './http' | |
/** | |
* HTTP Request wrapper | |
* @author Max L Dolgov <[email protected]> | |
* | |
* @description created to eliminate CORS preflighted requests | |
* @param url {string} | |
* @param data {object} |
/** | |
* | |
* @description parses http headers string | |
* and returns them as Array of { key: value } | |
* | |
* @headers {string} | |
* var headers = `Pragma: no-cache | |
* Cache-Control: no-cache | |
* Content-Type: application/json; charset=UTF-8 | |
* Accept-Encoding: gzip, deflate, br |
const exports = { | |
aerialway: { | |
fields: ["aerialway"], | |
geometry: ["point", "vertex", "line"], | |
tags: { | |
aerialway: "*" | |
}, | |
terms: ["ski lift", "funifor", "funitel"], | |
searchable: !1, | |
name: "Aerialway" |
function reduceObject( obj, reduceCallback, initialValue ) { | |
return Object.keys( obj ).reduce( function( acc, key, idx, arr ) { | |
return reduceCallback( acc, obj[key], key, obj ) | |
}, initialValue ) | |
} | |
var mapCollectionByProp = (list, fieldName) => list.reduce( (acc, v) => ({ ...acc, [v[fieldName]]: v }), {}) | |
/** | |
* returns new object with result of iterator() call for each property from keys |