From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C2C24138A87 for ; Wed, 25 Feb 2015 23:40:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C85CE09DA; Wed, 25 Feb 2015 23:40:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E0577E09DA for ; Wed, 25 Feb 2015 23:40:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 023E2340B05 for ; Wed, 25 Feb 2015 23:40:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 126C8128DD for ; Wed, 25 Feb 2015 23:40:25 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1424907594.5d0ec26faceeefe3ce97393cc28dd23c7b67243b.robbat2@gentoo> Subject: [gentoo-commits] proj/ag:master commit in: / X-VCS-Repository: proj/ag X-VCS-Files: ag X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 5d0ec26faceeefe3ce97393cc28dd23c7b67243b X-VCS-Branch: master Date: Wed, 25 Feb 2015 23:40:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0c6cc428-b4ee-490a-9010-b95150bcb561 X-Archives-Hash: 7169831065c5181048a3d2d4cb9c7430 commit: 5d0ec26faceeefe3ce97393cc28dd23c7b67243b Author: Robin H. Johnson gentoo org> AuthorDate: Wed Feb 25 23:39:54 2015 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Wed Feb 25 23:39:54 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=5d0ec26f Document that this deletes the index normally. Signed-off-by: Robin H. Johnson gentoo.org> --- ag | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ag b/ag index 5375461..b031363 100755 --- a/ag +++ b/ag @@ -32,7 +32,7 @@ $options.argmode = nil op = OptionParser.new do |opts| opts.banner = "Usage: ag <<--index-full|--index-new|--delete-msg|--delete-index|--reindex|--rethread|--info> <--list listname>> <[--file|--msgid|--hash] > [options]" - opts.on('--index-full', 'Read the full past archive from Maildir/cur. Needs --list and a Maildir') do + opts.on('--index-full', 'Read the full past archive from Maildir/cur. Does --delete-index by default. Needs --list and a Maildir') do abort 'Can only select one action' if $options.action != nil $options.action = :do_full @@ -155,7 +155,7 @@ Ag::Utils.proc_count = $options.jobs def do_full abort "Wrong argument type: #{$options.argmode.to_s}" unless $options.argmode == :dir begin - Ag::Storage.delete_index($options.name) + Ag::Storage.delete_index($options.name) unless $options.readonly rescue Elasticsearch::Transport::Transport::Errors::NotFound => e $stderr.puts "Index did not exist yet. Creating." if $options.debug end