Debian Bug report logs - #860936
git-crecord: add cstage and cunstage aliases

version graph

Package: git-crecord; Maintainer for git-crecord is Andrew Shadura <andrewsh@debian.org>; Source for git-crecord is src:git-crecord (PTS, buildd, popcon).

Reported by: Paul Wise <pabs@debian.org>

Date: Sat, 22 Apr 2017 07:45:02 UTC

Severity: wishlist

Found in version git-crecord/20161226.0-1

Forwarded to https://github.com/andrewshadura/git-crecord/issues/5

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Andrew Shadura <andrewsh@debian.org>:
Bug#860936; Package git-crecord. (Sat, 22 Apr 2017 07:45:04 GMT) (full text, mbox, link).


Acknowledgement sent to Paul Wise <pabs@debian.org>:
New Bug report received and forwarded. Copy sent to Andrew Shadura <andrewsh@debian.org>. (Sat, 22 Apr 2017 07:45:04 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Paul Wise <pabs@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: git-crecord: add cstage and cunstage aliases
Date: Sat, 22 Apr 2017 15:42:30 +0800
[Message part 1 (text/plain, inline)]
Package: git-crecord
Version: 20161226.0-1
Severity: wishlist

It would be nice to add the cstage and cunstage aliases, which it
appears the code supports already:

$ egrep 'argv|subcommand|action ' /usr/lib/python2.7/dist-packages/git_crecord/main.py -C2

def main():
    prog = os.path.basename(sys.argv[0]).replace('-', ' ')

    subcommand = prog.split(' ')[-1].replace('.py', '')

    if subcommand == 'crecord':
        action = 'commit or stage'
    elif subcommand == 'cstage':
        action = 'stage'
    elif subcommand == 'cunstage':
        action = 'keep staged'

    parser = argparse.ArgumentParser(description='interactively select changes to %s' % action, prog=prog)
--
    opts = vars(args)

    if subcommand == 'cstage':
        opts['index'] = True

    if subcommand == 'cunstage':
        opts['cached'] = True

-- System Information:
Debian Release: 9.0
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (860, 'testing-proposed-updates'), (800, 'unstable-debug'), (800, 'unstable'), (790, 'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'), (690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages git-crecord depends on:
ii  python-docutils  0.13.1+dfsg-2
pn  python:any       <none>

git-crecord recommends no packages.

git-crecord suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
[signature.asc (application/pgp-signature, inline)]

Set Bug forwarded-to-address to 'https://github.com/andrewshadura/git-crecord/issues/5'. Request was from Andrew Shadura <andrewsh@debian.org> to control@bugs.debian.org. (Tue, 10 Oct 2017 07:45:07 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Sep 2 21:19:55 2018; Machine Name: beach

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.