Giter VIP home page Giter VIP logo

gwt's Introduction

Hi, I'm Doug. Nice to meet you!

I like to keep busy learning new things (like Ansible), working with PostgreSQL, automating my home with Home Assistant, or breaking my Linux box in new and interesting ways.

Metrics

My scrobblesLatest tweets

gwt's People

Contributors

hunleyd avatar tsykoduk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

tsykoduk

gwt's Issues

clean up fake worktrees created by precommit

╭─doug@nuc ~  ‹main✔›
╰─➤  gwt
/srv/repos/priv-all-ansible-roles
↳ /home/doug/.cache/ansible-compat/875b93/old-rev                                           4b5e15fe0 (detached HEAD)
↳ /home/doug/.cache/ansible-compat/e805db/old-rev                                           013388bf3 (detached HEAD)

these should be deleted and git worktree prune run to get rid of them

Creating worktree from non devel branch fails

jchancojr@rubicon:~/Repos/priv-all-ansible-roles/.trees/something_something_darkside_pgconfig$ gwt create priv-all-ansible-roles 1_dot_14 upstream/v1_14-STABLE
gwt: Checking if upstream is a fetchable remote
gwt: Fetching remote: upstream
gwt: Checking if v1_14-STABLE is a valid head on upstream remote
gwt: Creating worktree
Preparing worktree (new branch '1_dot_14')
warning: refname 'upstream/v1_14-STABLE' is ambiguous.
fatal: ambiguous object name: 'upstream/v1_14-STABLE'

gwt: Creating the worktree FAILED !!

check for local changes before trying to pull

# Update the index
git update-index -q --ignore-submodules --refresh
err=0

# Disallow unstaged changes in the working tree
if ! git diff-files --quiet --ignore-submodules --
then
    echo >&2 "cannot $1: you have unstaged changes."
    git diff-files --name-status -r --ignore-submodules -- >&2
    err=1
fi

# Disallow uncommitted changes in the index
if ! git diff-index --cached --quiet HEAD --ignore-submodules --
then
    echo >&2 "cannot $1: your index contains uncommitted changes."
    git diff-index --cached --name-status -r --ignore-submodules HEAD -- >&2
    err=1
fi

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.