New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gito

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gito - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

History.md

48

index.js

@@ -0,36 +1,24 @@

var parse = require('shell-quote').parse
var spawn = require('child_process').spawn
var exec = require('child_process').exec
/**
* Module dependencies.
*/
module.exports = function(argvs){
exec('git add -A', function (err,so,se){
if(err)throw err;if(se)throw se;
var type = require('./lib/type');
var exec = require('child_process').exec;
var spawn = require('child_process').spawn;
exec('git commit -m '+argvs[2], function (err,stdout,stderr){
if(err)throw err;if(stderr)throw stderr;
/**
* Module exports.
*/
//tighten up shell output on the commit
var commit = parse(stdout).slice(0,6);
var branch = commit[0].split(''); branch.shift();
var shortHash = commit[1].split(''); shortHash.pop();
module.exports = function(argvs,cb){
//display commit summary information
console.log('commited ' + shortHash.join('') + ' to ' + branch.join('') + ' branch')
if (type(argvs[2]) == 'string') {
exec('git add -A && git commit --message "'+argvs[2]+'"'
, function (err,stdout,stderr){
if(err)throw err;
console.log(stdout);
var push = spawn('git',['push']);
push.on('data',function(data){
//console.log(process);
});
push.on('close',function(code){
console.log('success. pushed up to current remote branch')
});
});
}
//share a readable/writable stream that refers to a tty with the child process
spawn('git', ['push'], { stdio: 'inherit' });
})
})
}
{
"name": "gito",
"version": "0.0.3",
"version": "0.1.0",
"description": "git shortcuts",

@@ -24,12 +24,10 @@ "main": "index.js",

},
"dependencies":{
"shell-quote":"*"
},
"devDependencies": {
"commander":"*",
"mkdirp":"*",
"mocha": "*",
"should": "*",
"supertest":"*"
},
"scripts": {
"test": "mocha test"
"mkdirp":"*"
}
}
gito
=======
### run common git commands slightly faster
## one fell swoop your changes
### gito runs a common set of git commands slightly faster
[![Build Status](https://travis-ci.org/reqshark/gito.png?branch=master)](https://travis-ci.org/reqshark/gito)

@@ -18,3 +19,3 @@

Normally a quick push means doing:
Normally pushing up a quick change means doing:

@@ -35,5 +36,5 @@ ``` bash

Changes get added to the index, messaged as a commit, and pushed up with a single quick step.
Changes get added to the index, with `commit -m` message. Changes are also pushed up to your remote in one step.
Be careful with compression commits and pushes, because it's all going to happen fast now in one fell swoop.
Be careful with compression commits and pushes, because it's all fast.

@@ -44,29 +45,28 @@ ## ideas & notes about this software

Visible output on the console doesn't display correctly. Would buffering stdout fix this?
License
-------
(The MIT License)
This is free and unencumbered software released into the public domain.
Copyright (c) 2014 Bent Cardan <bent@shakelaw.com>
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
For more information, please refer to <http://www.wtfpl.net/>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc