summaryrefslogtreecommitdiff
path: root/asp.in
AgeCommit message (Collapse)Author
2019-01-17replace die() for log_fatal()Erick Cafferata
2018-09-13Fix some shellcheck warningsDave Reisner
2018-08-19Avoid cd, references to $startdirDave Reisner
just set GIT_DIR appropriately and always operate from the original $PWD. As part of this, let's cleanup our error handling in initialize() a fair bit.
2018-02-10avoid coloring when parsing output of 'git branch'Dave Reisner
Fixes #22.
2017-08-20Use https as the default git transportDave Reisner
Closes #17.
2017-07-08add set-git-protocol commandDave Reisner
While we're at it, separate our help output into two sections, since we're accumulating a growing list of subcommands which operate not on packages, but on the meta level of the asp repo. Closes #15.
2017-07-08avoid the need to maintain a separate list of actionsDave Reisner
We have our nice action__ prefix on all of our action disspatchers, so let's just use that to our advantage. While we're here, fix the return code when we encounter an ambiguous action
2017-06-19alphabetize action list, usage, manpageDave Reisner
2017-05-30hide git repo prefix in list-{all,local} outputDave Reisner
This is an implementation detail -- no one should really need to know or core which repo the package came from. Moreover, there's nothing you can do with this information. It's conceivable that a package of the same name could exist in both git repos, but this would be semantically forbidden by Arch packaging policies, and not well handled by asp regardless of showing the prefix here. Fixes GH#14.
2017-04-13Ensure we do proper versioning in the script and manpageDave Reisner
Fixup how we do versioning for git builds, and fix the missing package version in the manpage and the static version in the script.
2017-04-06make ASPCACHE dir creation fatalDave Reisner
2017-04-03lazily initialize ASPROOT if it doesn't yet existDave Reisner
2017-03-25fix defaulting expansion in ASPROOT definitionDave Reisner
And keep the doc up to date...
2017-03-25Handle split packagesDave Reisner
When a basic lookup fails, attempt to resolve the package name through archweb to get the pkgbase, under the assumption that this might be a split package. This adds jq as a new dependency. Closes #8.
2017-03-25move default ASPROOT to XDG_CACHE_HOME or similarDave Reisner
Others have asked for this in the past, see: https://github.com/falconindy/asp/issues/7#issuecomment-57004965 https://github.com/falconindy/asp/pull/9 asp might get more traction with the prospect of it more widely replacing ABS, and I suspect this will come up again.
2017-03-25improve manual, add ls-files and extra arg to showDave Reisner
Since aceefc28ca701feb8, the manpage has been out of date, not mentioning new features. While we're here, extend the manpage to better cover the arguments to our subcommands.
2017-03-25gc: merge prune and gc into single stepDave Reisner
pass --prune=all to gc to ensure that we properly cleanup unpacked and packed objects and don't have the weird bloating effect after a first pass, e.g.: $ asp disk-usage ==> Using 640K on disk. $ asp gc Nothing new to pack. $ asp disk-usage ==> Using 8.4M on disk. $ asp gc Nothing new to pack. $ asp disk-usage ==> Using 328K on disk.
2017-03-12fix argc value in __require_argcDave Reisner
I'm too stubborn to turn extdebug on, so let's just give up on BASH_ARGC (which never worked properly because former stubbornness about extdebug), and just pass $#.
2017-03-12add ls-files subcommand, allow showing files other than PKGBUILDDave Reisner
2017-03-11make __require_argc slightly easier to useDave Reisner
2016-06-19move svn2git remote to git.archlinux.orgDave Reisner
2016-06-18add argc checks for commandsDave Reisner
2016-06-15allow prefix matching for actionsDave Reisner
This offers some command line convenience, allowing the user only specify an action prefix as long as it can be resolved without ambiguitiy. For example, as of this commit, 'asp up' would then translate to 'asp update', and 'asp d' would be an error (as 'difflog' and 'disk-usage' are both candidates).
2016-03-20fix some things highlighted by shellcheckDave Reisner
2014-11-21remove legacy repo migration codeDave Reisner
2014-09-11re-point local tracking branches on 'asp update'Dave Reisner
This ensures that 'git pull' works in a checked-out repo after an update. https://bbs.archlinux.org/viewtopic.php?pid=1455457#p1455457
2014-08-29add 'show' verb, to display a PKGBUILD for a packageDave Reisner
2014-08-21move logic out of action parsingDave Reisner
2014-08-18cleanup local tracking branches when untrackingDave Reisner
Also, make both package_untrack and remote_untrack robust against partially existing branches.
2014-08-16remotes: move refcaching to diskDave Reisner
This speeds up a lot of operations substantially, at the cost of occasionally being wrong for a little while when new packages are added/removed from the repositories. Mostly, this is for the sake of the completions.
2014-08-08asp: die on passing invalid internal typeDave Reisner
2014-08-07asp: add checkout to usageDave Reisner
Fixes GHI#3.
2014-08-04Break out a util.inc.shDave Reisner
2014-08-01minor naming tweaks, remove useless rm -rfDave Reisner
2014-07-31add checkout verb, to make bite-sized git reposDave Reisner
This allows you to create a repo as a child of asp's, which you can modify as you wish, and continue to pull changes from after calling 'abs update'. One might create a new remote for this repo in which to publish their own downstream branch.
2014-07-31add hack to migrate bare repos to repos con arbolesDave Reisner
2014-07-31report a useful error when no args are passedDave Reisner
2014-07-31measure usage based on the full size of the dirDave Reisner
No need to arbitrarily restrict this to the objects.
2014-07-31add 'untrack' verbDave Reisner
2014-07-30initial commitDave Reisner