Giter Club home page Giter Club logo

gituuids's Introduction

hi there my name's jookia and i spent too much time trying to explain that this is possible, so here it is:
UUIDs AS GIT NAMES! MODIFIABLE AUTHOR NAMES! IMMUTABLE COMMITS! MAGIC!

ok show me thegoods
===================

ok clone this repo and check the log, like this:

```
git clone https://github.com/Jookia/gituuidnames
cd gituuidnames
git log
./setup.sh
git log
```

the first log will show ugly UUIDs, the second will show beautiful names
all with the same commit hashes

so try adding a file and committing it, then cloning again:

```
echo "TEST" > file
git add file
git commit -m "what"
cd ..
git clone gituuidnames gituuidnames2
cd gituuidnames2
./setup.sh
git log
```

wow, it all works! you've committed as usual

but you've decided your name or whatever needs changing, so now you do this:

```
cd ../gituuidnames
./update-uuid.sh $(git config user.name) "My New Name" "[email protected]"
git log
```

next time someone fetches from your repo and syncs it will update the names:

```
cd ../gituuidnames2
git fetch
./sync-uuid.sh
git log
```

what's the point
================

the only point here is to show is that abstracting author info to use UUIDs in
git is fairly easy with scripts. this example is the most limited thing in the world
and i made it in a few hours but i'm sure if we took our best minds we could probably
nail out a solution that would auto-detect and auto-sync uuids

gituuids's People

Watchers

 avatar

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.