Commits
- Commit:
2d265c9244a93ab6f06672d4a8aed4a3f5dc3ff5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove `got add' workaround
earlier version of got would fail when trying to `got add' a file
that was already added (or committed.) Since the error message was
potentially scary, got_add tries to be smart and issue a `got info
file' first to see whether the file can be added, and only then
eventually issues `got add'.
This whole dance is now moot. got doesn't warn for files already
added. (also, this code could have been simpler from the beginning.)
Noticed since the pipe trick in the got sub was failing on linux.
Issue reported by Christoph Cremer, thanks!
- Commit:
fdb1653a62fcf31a8ef3467c53c2ab99fd6109c2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use gpg --batch --yes instead of redirecting standard output
last time I couldn't find the right incantation to prevent gpg from
prompting when the target file already exists.
- Commit:
42215f91fcd402df2a67c3b5601c50f622cc0b47
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't decode the whole ARGV, just the pattern for cmd_find
UNICODE is subtle, better not slightly tweaks the argument unless
we really need them.
- Commit:
cb8467de96056c2bef1d9ff538e01ad72bc0506c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
decode file names in the current locale
Otherwise we output gibberish and the pattern argument to `plass
find' may not even match the entries.
Issue reported by Anton Kasimov, thank you!
- Commit:
6fd928d3ad33d035b79e6b65bf4f9f97accde929
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use File::Path' make_path instead of rolling my own
again from volker' plage.pl, thanks!
- Commit:
84eda8d652f10bd982e914388554b853a7ac299b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use extended regular expressions in `plass find'
from volker' plage.pl, thanks!
- Commit:
b458d1aa4a5cb916e7d8ce222c15f6bafd19b5f2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use foreach instead of map to print the matching entries
from volker' plage.pl
- Commit:
6b4b0a36a5899117de558c34f68cf2ab456d6db2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
missing semicolon; from volker' plage.pl
- Commit:
a0e32af22b75afa11c6fc5676a20513a16b2036a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix undefined behaviour reported by perlcritic
"return" statement followed by "sort" at line 140, column 2. Behavior
is undefined if called in scalar context. (Severity: 5)
the fix is the same as in volker' plage(1).
- Commit:
3cf28f46d454a6b95131133179393b3ae6ac7ec4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid issuing unnecessary `got add'
plass always did a `got add $file' before committing changes. However,
this leads to a possibly misleading "file has unexpected status" error
being printed to stderr.
Instead, `got add $file' only when the file is new.
- Commit:
8c4930cfcef7c2310f05b7007f95750513e1fd79
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor cmd_edit
Now it always deletes the temporary file.
- Commit:
fc9fec0528e6bbd15f3b6ebbc175b3b907b52a94
- From:
- Omar Polo <op@omarpolo.com>
- Date:
plass tee: set binmode to avoid mangling binary data
- Commit:
1169deba9daca5ae8f560bf4cc3e405435a5e1e0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
refactor cmd_tee: simplify the code
inline (with tweaks) writepass, it's redundant to have. While here also
read/write blockwise instead that of linewise.
- Commit:
77ea6ba189318aa615484e5dbcb7271af75eb89f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove handling of PLASS_GOT environment variable
There's no real reason to have this variable, there's only one `got'
usually and people are better off putting it somewhere in $PATH.
Retain PLASS_GPG as there seem to be a little issue with gpg vs gpg2 so
the knob may be useful in practice.
- Commit:
71c704e31adc9f16efb0cd55ac5abb17249bd867
- From:
- Omar Polo <op@omarpolo.com>
- Date:
bump copyright