Skip to content

Instantly share code, notes, and snippets.

@digitaljhelms
Created July 13, 2012 23:44

Revisions

  1. digitaljhelms revised this gist Jul 13, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions api.json
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@
    "description": "finally blogging...",
    "author": "Jeremy Helms",
    "post": {
    "url": "http://digitaljhelms.github.com/creating-a-branch-with-no-parents-or-history",
    "url": "http://digitaljhelms.github.com/howto/creating-a-branch-with-no-parents-or-history",
    "slug": "creating-a-branch-with-no-parents-or-history",
    "title": "Create a Git Branch without Parents or History",
    "published_on": "2012-07-02 00:00:00 -0500",
    @@ -14,7 +14,7 @@
    "categories": "howto"
    },
    "post": {
    "url": "http://digitaljhelms.github.com/build-and-install-git-from-source-on-os-x-lion",
    "url": "http://digitaljhelms.github.com/howto/build-and-install-git-from-source-on-os-x-lion",
    "slug": "build-and-install-git-from-source-on-os-x-lion",
    "title": "Build and Install Git from Source on OS X Lion",
    "published_on": "2012-06-09 00:00:00 -0500",
  2. digitaljhelms revised this gist Jul 13, 2012. 2 changed files with 3 additions and 3 deletions.
    4 changes: 2 additions & 2 deletions api.json
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    "published_on": "2012-07-02 00:00:00 -0500",
    "excerpt": "git checkout has an --orphan option that will create a branch with no "parents" or relation at all to other branches/commits in the repository.From the man page:Create a new orphan branch, named , started from and switch to it. The first commit made on this new branch will have no parents and it will be...",
    "tags": "git",
    "category": ""
    "categories": "howto"
    },
    "post": {
    "url": "http://digitaljhelms.github.com/build-and-install-git-from-source-on-os-x-lion",
    @@ -20,7 +20,7 @@
    "published_on": "2012-06-09 00:00:00 -0500",
    "excerpt": "This outline for building and installing Git has only been tested against Mac OS X 10.7.x (Lion). While these steps may work for previous versions of Mac OS X, I cannot confirm this. Furthermore, you're on your own, if you screw something up, it's not my fault.If you have Xcode 4, you have Git!Xcode 4...",
    "tags": "git, osx, lion",
    "category": ""
    "categories": "howto"
    }
    }
    ]
    2 changes: 1 addition & 1 deletion api.json.jekyll
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ title : JSON
    "published_on": "{{ post.date }}",
    "excerpt": "{{ post.content | strip_html | strip_newlines | truncatewords: 55 }}",
    "tags": "{% for tag in post.tags %}{{ tag }}{% if forloop.rindex0 > 0 %}, {% endif %}{% endfor %}",
    "category": "{{ post.category }}"
    "categories": "{% for category in post.categories %}{{ category }}{% if forloop.rindex0 > 0 %}, {% endif %}{% endfor %}"
    }{% endfor %}
    }
    ]
  3. digitaljhelms created this gist Jul 13, 2012.
    26 changes: 26 additions & 0 deletions api.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    [
    {
    "homepage": "http://digitaljhelms.github.com",
    "name": "digitaljhelms",
    "description": "finally blogging...",
    "author": "Jeremy Helms",
    "post": {
    "url": "http://digitaljhelms.github.com/creating-a-branch-with-no-parents-or-history",
    "slug": "creating-a-branch-with-no-parents-or-history",
    "title": "Create a Git Branch without Parents or History",
    "published_on": "2012-07-02 00:00:00 -0500",
    "excerpt": "git checkout has an --orphan option that will create a branch with no "parents" or relation at all to other branches/commits in the repository.From the man page:Create a new orphan branch, named , started from and switch to it. The first commit made on this new branch will have no parents and it will be...",
    "tags": "git",
    "category": ""
    },
    "post": {
    "url": "http://digitaljhelms.github.com/build-and-install-git-from-source-on-os-x-lion",
    "slug": "build-and-install-git-from-source-on-os-x-lion",
    "title": "Build and Install Git from Source on OS X Lion",
    "published_on": "2012-06-09 00:00:00 -0500",
    "excerpt": "This outline for building and installing Git has only been tested against Mac OS X 10.7.x (Lion). While these steps may work for previous versions of Mac OS X, I cannot confirm this. Furthermore, you're on your own, if you screw something up, it's not my fault.If you have Xcode 4, you have Git!Xcode 4...",
    "tags": "git, osx, lion",
    "category": ""
    }
    }
    ]
    21 changes: 21 additions & 0 deletions api.json.jekyll
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    ---
    # Remember to set production_url in your _config.yml file!
    title : JSON
    ---
    [
    {
    "homepage": "{{ site.production_url }}",
    "name": "{{ site.title }}",
    "description": "{{ site.tagline }}",
    "author": "{{ site.author.name }}"{% for post in site.posts %},
    "post": {
    "url": "{{ site.production_url }}{{ post.url }}",
    "slug": "{{ post.id | remove:'/' }}",
    "title": "{{ post.title }}",
    "published_on": "{{ post.date }}",
    "excerpt": "{{ post.content | strip_html | strip_newlines | truncatewords: 55 }}",
    "tags": "{% for tag in post.tags %}{{ tag }}{% if forloop.rindex0 > 0 %}, {% endif %}{% endfor %}",
    "category": "{{ post.category }}"
    }{% endfor %}
    }
    ]