commit: 38fb0db5e223db54ab2ed68e304a7f00a5940e77
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 21:44:51 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 21:44:51 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=38fb0db5
Remove do_fix/--fix for now, it should be done externally to this.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
ag | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
diff --git a/ag b/ag
index 742abee..37c9079 100755
--- a/ag
+++ b/ag
@@ -21,7 +21,7 @@ $options.no_threading = false
$options.debug = false
op = OptionParser.new do |opts|
- opts.banner = "Usage: ag
<<--index-full|--index-new|--delete|--reindex|--info> <--list
listname>|<--fix>> <maildir/file/hash/messageid> [options]"
+ opts.banner = "Usage: ag
<<--index-full|--index-new|--delete|--reindex|--info> <--list listname>>
<maildir/file/hash/messageid> [options]"
opts.on('--index-full', 'Read the full past archive from the .cur Maildir')
do
abort 'Can only select one action' if $options.action != nil
@@ -35,12 +35,6 @@ op = OptionParser.new do |opts|
$options.action = :do_incremental
end
- opts.on('--fix', 'Fix up weird info sections') do
- abort 'Can only select one action' if $options.action != nil
-
- $options.action = :do_fix
- end
-
opts.on('--delete', 'Delete message. Needs --file, --msgid, or --hash') do
abort 'Can only select one action' if $options.action != nil
@@ -103,15 +97,6 @@ $es.transport.reload_connections!
###############################################################################
-def do_fix
- Dir.chdir($options.dir) do
- Dir.glob('*:2,:2,S').each do |f|
- puts "Fixing #{f}"
- File.rename(f, f.gsub(':2,:2,S', ':2,S'))
- end
- end
-end
-
def do_full
Ag::Storage.create_index($options.name)