≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Feature request #1502

Feature request #1502: Extract "dialog" project from "snippets" repo

Kind feature request
Product no product
When Created 2010-03-19T07:45:38Z, updated 2013-07-29T04:10:41Z
Status open
Reporter Greg Hurrell
Tags no tags

Description

The overhead of setting up a Git repository is so low that I may as well extract this into a separate project.

Not sure how to do this while maintaining history. Perhaps look into git subtree. Or failing that clone and git filter-branch.

Comments

  1. Greg Hurrell 2010-03-19T09:09:15Z

    From the git-filter-branch manpage:

    To rewrite the repository to look as if foodir/ had been its project root, and discard all other history:
    
        git filter-branch --subdirectory-filter foodir -- --all
    
    Thus you can, e.g., turn a library subdirectory into a repository of its own. Note the -- that separates
    filter-branch options from revision options, and the --all to rewrite all branches and tags.
  2. Greg Hurrell 2010-03-19T09:36:49Z

    Ok, done.

    mkdir dialog
    cd dialog
    git clone ~/trabajo/unversioned/snippets src
    cd src
    git filter-branch --subdirectory-filter dialog -- --all
    
    # to definitively remove the "original" refs this is not enough
    rm -r .git/refs/original
    
    # had to actually delete the corresponding lines from here too:
    vim .git/packed-refs
    
    # then repack:
    git repack -a
  3. Greg Hurrell 2013-07-29T04:10:41Z

    Bumping this ticket. The code is sitting around in ~/work/lion/dialog; all I need to do is upload it.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets