Code Monkey home page Code Monkey logo

gitfuse's Introduction

gitfuse: mount read only checkouts

I am working quite a bit on repositories where there are different branches for different versions. Regularly, I need to compare stuff between branches. This requires more git techniques than I care for. Moreover, when I am working on a changing a branch, it is annoying to check out things in other branches.

Enter gitfuse.

This daemon mounts a readonly FUSE file system locally with predefined branches in different directories. You can only look at the contents of the files. There is no concept of editing and history.

It is preferred to have gitfus look at the upstream origin branches. Then you have an objective view on the current state of the authorative branch.

Gitfuse installs inotify watchers on the configured branches. Whenever you do git fetch origin or git pull and HEAD changes, the directory is regenerated.

gitfuse expects a configfile in ~/.config/gitfuse/config.yaml. An alternative location can be specified with -c path/to/file.

Installation

$ git clone https://github.com/joepvd/gitfuse.git
$ cd gitfuse
$ pip3 install --user .

There is a systemd service file included that can be copied into ~/.config/systemd/user. Test with:

$ systemctl start --user gitfuse.service
$ systemctl enable --user gitfuse.service

gitfuse's People

Contributors

joepvd avatar locriandev avatar thiagoalessio avatar

Watchers

 avatar  avatar  avatar

Forkers

locriandev

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.