Coder Social home page Coder Social logo

atom-ungit's Introduction

ungit package for Atom.io

A project to bring in ungit to Atom.io.

Easiest way to work with git in atom.io.

Screenshot

Key maps:

  • ctrl-alt-u: Toggle ungit. If ungit is not running, run ungit and bring up ungit view in atom.io. If ungit view is in focus, close ungit view but ungit instance will be remained running in background.
  • ctrl-alt-k: Run terminate ungit. Terminates ungit server instance that was triggered by atom-ungit and closes ungit view in atom.io. Does not affect ungit instance that was not tirggered via atom-ungit.

Known issues:

  • $PATH environment variable is troublesome for OSX users, see here. So starting atom via atom command may not work with atom-ungit while starting atom via app icon does.

    This can be fixed by establishing file links.

    • Copy the output of which git
    • ln -fs <<output of previous command>> /usr/bin/git
    • Copy the output of which node
    • ln -fs <<output of previous command>> /usr/bin/node

Big thanks to:

  • @FredrikNoren
  • @ibnesayeed

atom-ungit's People

Contributors

atefbb avatar campersau avatar ibnesayeed avatar jung-kim avatar keiii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

atom-ungit's Issues

Can't open behind proxy

When I open ungit in Atom I see the message:

Access Denied (authentication_failed) 

Your credentials could not be authenticated: "Credentials are missing.". You will not be permitted access until your credentials can be verified.
This is typically caused by an incorrect username and/or password, but could also be caused by network problems.

For assistance, contact your network support team.

If I run ungit via CLI, all's OK.

Package.getStylesheetsPath is deprecated.

Store package style sheets in the styles/ directory instead of stylesheets/ in the atom-ungit package

Package.getStylesheetsPath (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:460:9)
Package.getStylesheetPaths (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:471:32)
Package.loadStylesheets (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:453:38)
<unknown> (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:183:19)
Package.measure (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:163:15)
Package.load (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:177:12)

Atom.Object.defineProperty.get is deprecated.

Just got this deprecation message. Using Atom Version 0.182.0 (0.182.0) with atom-ungit 0.4.0:

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
Object.activate (/Users/tfnico/.atom/packages/atom-ungit/lib/atom-ungit.coffee:33:9)

Implement ungit operation on atom tree view

atom tree view effectively highlights the items that are new or modified compared to repo copy.

It would be better if atom-ungit is further integrated with atom by right click on files and see git operations such as revert, stash and so on.

Difficulty of this issue is that due to atom being highly customizable aspect, it is possible that users are not using "tree view" plugin and use another plugin to see the directory structure. I don't know if there are better ways to solve this other than imply this feature of atom-ungit works with "tree view" plugin only.

Uncaught Error: connect ECONNREFUSED

From @JostCrow on January 23, 2015 9:46

[Enter steps to reproduce below:]

  1. killed ungit via ctrl+p.
  2. pressed ctrl+p again afterwards.
  3. Nothing happened so I pressed it again.

Atom Version: 0.175.0
System: linux 3.13.0-44-generic
Thrown From: Atom Core

Stack Trace

Uncaught Error: connect ECONNREFUSED

At events.js:85

Error: connect ECONNREFUSED
  at exports._errnoException (util.js:746:11)
  at Object.afterConnect [as oncomplete] (net.js:990:19)

Commands

     -0:24.2 window:run-package-specs (atom-text-editor.editor)
  3x -0:21.2 project-manager:toggle (atom-text-editor.editor)
     -0:19.5 core:move-up (atom-text-editor.editor.mini)
     -0:19.3 core:confirm (atom-text-editor.editor.mini)
     -0:16.1 command-palette:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-atom-dark-ui)
     -0:14.3 core:confirm (atom-text-editor.editor.mini)
     -0:14.3 ungit:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-monokai.theme-atom-dark-ui)
     -0:01.9 command-palette:toggle (atom-text-editor.editor.is-focused)
     -0:00.0 core:confirm (atom-text-editor.editor.mini)
     -0:00.0 ungit:kill (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "tabs",
      "tree-view",
      "linter-python-pep8",
      "toolbar",
      "toolbar-main",
      "pane-layout-plus",
      "indent-guide-improved"
    ],
    "themes": [
      "atom-dark-ui",
      "monokai"
    ]
  },
  "editor": {
    "fontSize": 12,
    "showIndentGuide": true,
    "tabLength": 4,
    "scrollSensitivity": 80,
    "scrollPastEnd": true,
    "invisibles": {}
  }
}

Installed Packages

# User
atom-python-debugger, v0.1.1
atom-ungit, v0.4.0
autoclose-html, v0.13.0
autocomplete-plus, v1.1.0
autocomplete-plus-async, v0.22.0
highlight-selected, v0.7.0
language-django, v0.1.1
linter, v0.10.1
linter-pep8, v0.1.0
minimap, v3.5.6
minimap-color-highlight, v3.1.0
minimap-find-and-replace, v3.1.0
minimap-git-diff, v3.1.0
minimap-highlight-selected, v3.1.0
minimap-selection, v3.1.1
monokai, v0.11.0
project-manager, v1.15.0
python-isort, v0.0.5
set-syntax, v0.1.0
sublime-tabs, v0.4.8
tab-history, v0.4.0

# Dev
No dev packages

Copied from original issue: atom/atom#5230

Cannot launch ungit

Pressing ctrl-alt-u on Ubuntu 15.10 I got new tab with following message:

Invalid path
"atom://.atom/init-script" doesn't seem to be a valid path.

Uncaught TypeError: undefined is not a function

Reproduction Steps

  1. Trigger the ungit:toggle command from either the command palette or by running atom.commands.dispatch(atom.views.getView(atom.workspace), 'ungit:toggle') from the console

It says that activeItem.getUri on line 70 is undefined
It points to the activeItem.getUri() function not being defined

Atom Version: 0.187.0
System: linux 3.19.1-towo.3-siduction-amd64
Thrown From: atom-ungit package, v0.4.2

Stack Trace

Uncaught TypeError: undefined is not a function

At /home/olmo/.atom/packages/atom-ungit/lib/atom-ungit.coffee:70

TypeError: undefined is not a function
  at Object.module.exports.toggle (/home/olmo/.atom/packages/atom-ungit/lib/atom-ungit.coffee:70:33)
  at atom-workspace.<anonymous> (/home/olmo/.atom/packages/atom-ungit/lib/atom-ungit.coffee:34:8)
  at atom-workspace.handler (/usr/share/atom/resources/app/src/space-pen-extensions.js:115:32)
  at atom-workspace.jQuery.event.dispatch (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/usr/share/atom/resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:246:29)
  at /usr/share/atom/resources/app/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/usr/share/atom/resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/usr/share/atom/resources/app/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/usr/share/atom/resources/app/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/src/command-registry.js:246:29)
  at /usr/share/atom/resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app/src/window-event-handler.js:182:20)

Commands

     -0:02.6 command-palette:toggle (atom-workspace.workspace.scrollbars-visible-always.block-cursor-block.dark-flat-ui-tab-syntax-background.theme-one-dark-syntax.theme-dark-flat-ui)
     -0:01.3 core:confirm (atom-text-editor.editor.mini)
     -0:01.3 ungit:toggle (atom-workspace.workspace.scrollbars-visible-always.block-cursor-block.dark-flat-ui-tab-syntax-background.theme-one-dark-syntax.theme-dark-flat-ui)

Config

{
  "core": {
    "disabledPackages": [
      "autocomplete",
      "preview",
      "wrap-guide",
      "build",
      "view-tail-large-files",
      "command-toolbar",
      "git-diff-popup",
      "ti-create",
      "ti-build-atom",
      "live-archive",
      "package-cop",
      "ti-alloy-related",
      "web-browser",
      "color-picker",
      "fancy-new-file",
      "markdown-preview",
      "travis-ci-status",
      "atom-browser-webview",
      "selection-outlines",
      "test-package",
      "atom-terminal-panel",
      "rubinius-terminal",
      "quantum-shell",
      "cursor-blink-interval",
      "less-compiler",
      "coffee-autocompile",
      "less-autocompile",
      "stylus-autocompile",
      "git-plus",
      "git-control"
    ],
    "themes": [
      "dark-flat-ui",
      "one-dark-syntax"
    ],
    "projectHome": "/home/olmo/projects",
    "audioBeep": false,
    "followSymlinks": true,
    "autoHideMenuBar": true
  }
}

Installed Packages

# User
Remote-FTP, v0.6.2
atom-alignment, v0.11.0
atom-color-highlight, v3.0.8
atom-handlebars, v0.4.0
atom-ternjs, v0.5.5
atom-ungit, v0.4.2
auto-host-markdown-image, v0.2.3
autocomplete-atom-api, v0.5.0
autocomplete-bibtex, v0.5.4
autocomplete-css, v0.4.0
autocomplete-html, v0.3.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.4.2
autocomplete-snippets, v1.0.1
autohide-tree-view, v0.15.5
bezier-curve-editor, v0.6.6
block-cursor, v0.10.1
bug-report, v0.6.3
caniuse, v0.5.3
change-case, v0.5.1
code-links, v0.3.8
dark-flat-ui, v1.1.2
docblockr, v0.6.3
file-icons, v1.5.1
fonts, v0.4.0
git-log, v0.3.0
git-tab-status, v1.5.3
hex, v0.5.0
highlight-selected, v0.9.1
html-entities, v0.3.1
http-status-codes, v1.0.3
indentation-indicator, v0.4.1
language-apache, v1.2.0
language-generic-config, v0.1.3
language-haml, v0.15.0
language-jade, v0.3.0
language-latex, v0.4.1
language-stylus, v0.1.0
linter, v0.12.0
linter-clang, v2.25.1
linter-coffeelint, v0.1.7
linter-cpplint, v0.1.3
linter-csslint, v0.0.11
linter-haml, v0.1.1
linter-htmlhint, v0.0.8
linter-javac, v0.1.3
linter-js-yaml, v1.0.0
linter-jshint, v0.1.0
linter-jsonlint, v0.1.2
linter-less, v0.3.1
linter-php, v0.0.11
linter-scss-lint, v0.0.14
linter-shellcheck, v0.0.7
linter-stylus, v0.1.0
linter-write-good, v0.2.2
linter-xmllint, v0.0.5
markdown-preview-plus, v1.3.0
markdown-scroll-sync, v0.3.2
mathjax-wrapper, v0.1.0
minimap, v4.6.0
minimap-bookmarks, v0.1.0
minimap-color-highlight, v4.1.0
minimap-find-and-replace, v4.2.0
minimap-git-diff, v4.1.2
minimap-highlight-selected, v4.2.0
minimap-selection, v4.2.0
npm-autocomplete, v0.1.1
permanent-delete, v0.1.2
preview-plus, v1.1.19
project-manager, v1.15.5
project-palette-finder, v2.4.16
read-only-indicator, v0.1.0
regex-railroad-diagram, v0.7.1
rest-client, v0.3.1
slash-closer, v0.7.1
symbols-tree-view, v0.6.1
sync-settings, v0.2.2
tabs-to-spaces, v0.8.1
terminal-panel, v1.10.0
texlicious, v0.3.9

# Dev
linter-stylus, v0.1.0
terminal-panel, v1.10.0

init errors

Hey thr
On windows10 got following error when I init via ungit UI.

Command

-c color.ui=false -c core.quotepath=false -c core.pager=cat log --decorate=full --date=default --pretty=fuller --branches --tags --remotes --parents --no-notes --numstat --topo-order --max-count=25

Error

fatal: your current branch 'master' does not have any commits yet

Stderr

fatal: your current branch 'master' does not have any commits yet

Stdout

Thx
Jas

Close Ungit Tab Only If In Focus

I was wandering, should we implement the workflow in a way that hitting the toggle key combination create the tab if not already, invokes Ungit process if not running, brings Ungit tab in focus if not in focus. But it kills the process and closes the tab only when Ungit tab is active.

In my workflow, I keep several files open at once. If I bring Ungit up, then without closing it start working on other files and want to have a look at Ungit tab again, hot-key will actually kill the tab first which is not desired.

I was also thinking, since it is a very special tab, should we choose to open the tab as the very first or last one, instead of next to the currently active tab? Or should we have a setting to allow users to chose this behavior?

Package.getActivationCommands is deprecated.

Use activationCommands instead of activationEvents in your package.json
Commands should be grouped by selector as follows:

  "activationCommands": {
    "atom-workspace": ["foo:bar", "foo:baz"],
    "atom-text-editor": ["foo:quux"]
  }
Package.getActivationCommands (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:808:9)
Package.hasActivationCommands (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:733:20)
<unknown> (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:185:24)
Package.measure (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:163:15)
Package.load (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package.js:177:12)
PackageManager.loadPackage (C:\Users\d000010\AppData\Local\atom\app-0.204.0\resources\app.asar\src\package-manager.js:355:14)

wrong repo dir is opened when paths have long common prefix

Steps to reproduce:

  1. install atom, ungit, atom-ungit

  2. add 2 projects to atom, which follow the following naming scheme:

/some/root/path/project-name
/some/root/path/project-name-suffix

of course both projects should be versioned in git

  1. create file in project project-name-suffix, and open it in atom
  2. click Ctrl+Alt+U (or whatever is your shortcut to open atom-ungit)

Expected result:

Page with git history of project-name-suffix opens.

Actual result:

Page with git history of project-name opens.

Tested on several of my repositories, e.g.

which I both clone to /home/mb/Projects/fortran

And also pair of projects named flash and flash-subset.

Doesn't happen if projects are not stored in the same root path. For example it didn't happen to open-fortran-parser-xml until I moved it to the same root dir as open-fortran-parser...

Deprecated selectors

Here is a deprecation warning in updated Atom:

atom-ungit
keymaps/ungit.cson
Use the atom-workspace tag instead of the workspace class.

unable to install this package

This is my error log.

> [email protected] preinstall /tmp/apm-install-dir-115919-14427-83m86g/node_modules/atom-ungit/node_modules/ungit/node_modules/getmac/node_modules/extract-opts/node_modules/typechecker
> node ./cyclic.js


> [email protected] install /tmp/apm-install-dir-115919-14427-83m86g/node_modules/atom-ungit/node_modules/ungit/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)


npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"2.13.3"})

module.js:340
    throw err;
          ^
Error: Cannot find module '/tmp/apm-install-dir-115919-14427-83m86g/node_modules/atom-ungit/node_modules/ungit/node_modules/getmac/node_modules/extract-opts/node_modules/typechecker/cyclic.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:935:3
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"0.10.40","npm":"2.13.3"})
npm ERR! Linux 3.19.0-30-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/capaj/.atom/.apm/.apmrc" "--userconfig" "/home/capaj/.atom/.apmrc" "install" "/tmp/d-115919-14427-1p7mzmw/package.tgz" "--target=0.30.7" "--arch=x64"
npm ERR! node v0.10.40
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] preinstall: `node ./cyclic.js`
npm ERR! Exit status 8
npm ERR! 
npm ERR! Failed at the [email protected] preinstall script 'node ./cyclic.js'.
npm ERR! This is most likely a problem with the typechecker package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./cyclic.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls typechecker
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-115919-14427-83m86g/npm-debug.log

Update Ungit Dependency

Unless there is a reason to still use 0.8.x version of Ungit, we should update it to 0.9.x version. Here is the message that I am getting when starting atom-ungit.

A new version of ungit (0.9.2) is available! Run sudo -H npm update -g ungit to install. (You are currently running version 0.8.4.)

Update ungit to 1.3.3

Ungit is now version 1.3.3.

I'm on Mac OS X and have installed node via homebrew. I have updated ungit locally and it is the latest version if I start it directly from the command line. But from atom I seem to get version 1.2.3 for some reason.

Any advice?

ungit doesn't open

Yesterday Ungut stopped working – I don't know why.

When I toggle Ungut, nothing happens.

This is the output in the console:

atom-ungit.coffee [sm]:121 Users/bastian/.atom/packages/atom-ungit/node_modules/ungit/bin/ungit [-v] [-b]
[--cliconfigonly] [--gitVersionCheckOverride]

Options:
  -o, --gitVersionCheckOverride   Ignore git version check and allow ungit to
                                  run with possibly lower versions of git
                                                                [default: false]
  --ungitVersionCheckOverride     Ignore check for older version of ungit
                                                                [default: false]
  -b, --launchBrowser             Launch a browser window with ungit when the
                                  ungit server is started. --no-b or
                                  --no-launchBrowser disables this
                                                                 [default: true]
  --cliconfigonly                 Ignore the default configuration points and
                                  only use parameters sent on the command line
                                                                       [boolean]
  --port                          The port ungit is exposed on   [default: 8448]
  --urlBase                       The base URL ungit will be accessible from
                                                   [default: "http://localhost"]
  --rootPath                      The root path ungit will be accessible from
                                                                   [default: ""]
  --logDirectory                  Directory to output log files  [default: null]
  --logRESTRequests               Write REST requests to the log [default: true]
  --logGitCommands                Write git commands issued to the log
                                                                [default: false]
  --logGitOutput                  Write the result of git commands issued to the
                                  log                           [default: false]
  --bugtracking                   This will automatically send anonymous bug
                                  reports                        [default: true]
  --sendUsageStatistics           Google analytics for usage statistics
                                                                 [default: true]
  --authentication                True to enable authentication. Users are
                                  defined in the users configuration property
                                                                [default: false]
  --users                         Map of username/passwords which are granted
                                  access
  --showRebaseAndMergeOnlyOnRefs  Set to false to show rebase and merge on drag
                                  and drop on all nodes          [default: true]
  --maxConcurrentGitOperations    Maximum number of concurrent git operations
                                                                    [default: 4]
  --forcedLaunchPath              Define path to be used on open. Can be set to
                                  null to force the home screen
  --autoShutdownTimeout           Closes the server after x ms of inactivity.
                                  Mainly used by the clicktesting
  --maxNAutoRestartOnCrash        Maximum number of automatic restarts after a
                                  crash. Undefined == unlimited     [default: 0]
  --noFFMerge                     Don't fast forward git mergers. See git merge
                                  --no-ff documentation          [default: true]
  --autoFetch                     Automatically fetch from remote when entering
                                  a repository using ungit       [default: true]
  --dev                           Automatically does stash -> operation -> stash
                                  pop when you checkout, reset or cherry pick
                                                                 [default: true]
  --logLevel                      The logging level, possible values are none,
                                  error, warn, info, verbose, debug, and silly.
                                                               [default: "warn"]
  --launchCommand                 Specify a custom command to launch. `%U` will
                                  be replaced with the URL that corresponds with
                                  the working git directory.
  --allowCheckoutNodes            Allow checking out nodes (which results in a
                                  detached head)                [default: false]
  --allowedIPs                    An array of ip addresses that can connect to
                                  ungit. All others are denied   [default: null]
  --autoPruneOnFetch              Automatically remove remote tracking branches
                                  that have been removed on the server when
                                  fetching. (git fetch -p)       [default: true]
  --pluginDirectory               Directory to look for plugins
                                      [default: "/Users/bastian/.ungit/plugins"]
  --pluginConfigs                 No supported as a command line argument, use
                                  ungitrc config file.  See README.md
                                                                   [default: {}]
  --autoStashAndPop               Used for development purposes  [default: true]
  --fileSeparator                 OS dependent file separator     [default: "/"]
  --disableDiscardWarning         disable warning popup at discard
                                                                [default: false]
  --disableDiscardMuteTime        duration of discard warning dialog mute time
                                  should it be muted           [default: 300000]
  --lockConflictRetryCount        Allowed number of retry for git "index.lock"
                                  conflict                          [default: 3]
  --autoCheckoutOnBranchCreate    Auto checkout the created branch on creation
                                                                [default: false]
  --alwaysLoadActiveBranch        Always load with active checkout branch
                                                                [default: false]
  --numberOfNodesPerLoad          number of nodes to load for each git.log call
                                                                   [default: 25]
  --mergeTool                     the git merge tool to use when resolving
                                  conflicts                     [default: false]
  -h, --help                      Show help                            [boolean]
  -v, --version                   Show version number                  [boolean]
  --socketId                                                        [default: 0]

Examples:
  Users/bastian/.atom/packages/atom-ungit/  Run Ungit on port 8888
  node_modules/ungit/bin/ungit --port=8888
  Users/bastian/.atom/packages/atom-ungit/  Turn off REST logging but turn on
  node_modules/ungit/bin/ungit              git command log
  --no-logRESTRequests --logGitCommands

(anonymous function) @ atom-ungit.coffee [sm]:121emitOne @ events.js:101emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
atom-ungit.coffee [sm]:121 Unknown argument: socketId
(anonymous function) @ atom-ungit.coffee [sm]:121emitOne @ events.js:101emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543
Unknown argument: socketId
(anonymous function) @ atom-ungit.coffee [sm]:121emitOne @ events.js:101emit @ events.js:188readableAddChunk @ _stream_readable.js:176Readable.push @ _stream_readable.js:134onread @ net.js:543

Adding Ungit Logo In The Tab

We should add Ungit logo in the corresponding tab. This will allow us to remove the sticky header section in the Ungit iframe that contains the logo and the repository path. Keeping the logo in the tab will make it stand out for other tabs. Also, the repository path is not needed here because it is expected to open in the context of the editor itself. Refresh functionality can be bound to another keymap. And this way we will be able to shave off a very precious screen real-estate.

I will be making a request in the main Ungit repository to allow the client to request the Ungit server a page with or without the header. Then we can pass appropriate parameters in the URI to get the page without the header and if the directory context is not set in the editor (when the editor is opened from application menu for example) then we will open the iframe with the header in it.

Instruction page if ungit is not installed

First of all, the README file needs to mention that for this package to work, ungit must be installed (and a link to installation instructions that are noted on the README of the main ungit repository).

Also, it will be nice if a user installs this package and does not have ungit (or even nodejs) installed then the iframe under the ungit tab of the editor should show a page with instructions to install necessary things to get it working.

error: during stashing on windows atom

Using windows 10 and got following error.
Error:
Ungit tried to run a git command that resulted in an unhandled error. An automatic bug report was sent.

Command

-c color.ui=false -c core.quotepath=false -c core.pager=cat stash pop stash@{0}
Error

fatal: ambiguous argument 'stash@0': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'
Stderr

fatal: ambiguous argument 'stash@0': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

Unnecessary horizontal scrollbar

There is an annoying horizontal scrollbar, although no content seem to be overflowing and the responsive layout seems to fit nicely withing the visible window. I was trying to play with the developer tool to change some iframe attribute and CSS styles but could not fix it. Is it only me or anyone else is experiencing it? I am using Ubuntu 15.04 and the latest version of Atom.

Toggle and Kill functionalities not working

There are several things wrong with atom-ungit in my installation on Atom 0.206.0 on Ubuntu 14.10.

  • Toggle command creates a new tab every time instead of killing one if exists already.
  • Kill command throws an error (trace added below.)
  • Atom-ungit style is not loading or not applied as a result:
    • there is an ugly border around the iframe and
    • tab does not show the logo, instead it shows the text "Uri-web".

Error on kill command:

/home/USER_NAME/.atom/packages/atom-ungit/lib/atom-ungit.coffee:55

TypeError: undefined is not a function
    at Object.module.exports.closeUngit (/home/USER_NAME/.atom/packages/atom-ungit/lib/atom-ungit.coffee:82:36)
    at Object.module.exports.kill (/home/USER_NAME/.atom/packages/atom-ungit/lib/atom-ungit.coffee:76:12)
    at atom-workspace.atom.commands.add.ungit:kill (/home/USER_NAME/.atom/packages/atom-ungit/lib/atom-ungit.coffee:57:26)
    at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/opt/atom/resources/app.asar/src/command-registry.js:238:29)
    at CommandRegistry.handleCommandEvent (/opt/atom/resources/app.asar/src/command-registry.js:3:61)
    at CommandRegistry.module.exports.CommandRegistry.dispatch (/opt/atom/resources/app.asar/src/command-registry.js:153:19)
    at EventEmitter.<anonymous> (/opt/atom/resources/app.asar/src/window-event-handler.js:70:30)
    at emitOne (events.js:77:13)
    at EventEmitter.emit (events.js:166:7)

/bin/sh: 1: node: not found

I have ubuntu 15.10 and node installed with nvm and when I try to opne ungit in atom it just prints an error into the console:

/bin/sh: 1: node: not found
(anonymous function) @ atom-ungit.coffee:121

DO you know how to make it work?

"undefined" at Socket(atom-ungit.coffee:92:18)

[Enter steps to reproduce below:]

  1. When start ungit package, this error displayed

Atom Version: 0.194.0
System: Unknown Windows Version
Thrown From: atom-ungit package, v0.4.3

Stack Trace

Uncaught TypeError: undefined is not a function

At C:\Users\Administrator\.atom\packages\atom-ungit\lib\atom-ungit.coffee:92

TypeError: undefined is not a function
  at Socket.<anonymous> (C:\Users\Administrator\.atom\packages\atom-ungit\lib\atom-ungit.coffee:92:18)
  at emitOne (events.js:82:20)
  at Socket.emit (events.js:166:7)
  at readableAddChunk (_stream_readable.js:146:16)
  at Socket.Readable.push (_stream_readable.js:109:10)
  at Pipe.onread (net.js:517:20)

Commands

     -2:02.4.0 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-always.theme-monokai-seti.theme-seti-ui)
     -0:03.7.0 ungit:toggle (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "language-c",
      "language-clojure",
      "language-go",
      "language-ruby",
      "language-ruby-on-rails",
      "language-toml",
      "log-console",
      "language-objective-c",
      "language-mustache",
      "autocomplete",
      "jshint",
      "language-perl",
      "language-property-list",
      "emmet",
      "terminal-runner",
      "file-type-icons",
      "preview-plus",
      "atom-lint",
      "jslint",
      "atom-terminal-panel",
      "tidy-tabs"
    ],
    "projectHome": "D:\\web",
    "themes": [
      "seti-ui",
      "monokai-seti"
    ]
  }
}

Installed Packages

# User
atom-ternjs, v0.5.22
atom-ungit, v0.4.3
atomatigit, v1.3.0
autoclose-html, v0.15.0
autocomplete-paths, v1.0.2
autocomplete-plus, v2.12.0
autocomplete-snippets, v1.2.0
code-links, v0.3.8
coffee-links, v0.1.0
coffee-refactor, v0.6.2
color-picker, v1.7.0
highlight-selected, v0.9.2
js-refactor, v0.3.0
language-asp, v1.0.0
language-aspx, v0.4.0
language-batchfile, v0.4.0
language-ect, v0.2.0
language-gitignore, v0.2.0
language-livescript-edge, v1.0.0
linter, v0.12.1
linter-coffeelint, v0.2.1
linter-csslint, v0.0.11
linter-htmlhint, v0.0.13
linter-jshint, v0.1.2
linter-lsc, v1.1.2
linter-php, v0.0.12
minimap, v4.7.6
mocha, v0.0.5
monokai-seti, v0.7.0
navigate, v0.0.10
project-palette-finder, v2.4.16
project-ring, v0.19.6
refactor, v0.4.1
rest-client, v0.3.1
seti-ui, v0.6.3
Stylus, v0.7.0
webbox-color, v0.5.6
zentabs, v0.8.4

# Dev
No dev packages

Dependency Package web-view Not Found

Now when I am trying to install Atom-Ungit, I am getting the following eror message:

Installing “[email protected]” failed.Hide output…

npm ERR! Linux 3.16.0-37-generic
npm ERR! argv "/opt/atom/resources/app/apm/bin/node" "/opt/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/salam/.atom/.apm/.apmrc" "--userconfig" "/home/salam/.atom/.apmrc" "install" "/tmp/d-11556-5285-1ecq141/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.5.1
npm ERR! code E404

npm ERR! 404 Not Found: web-view
npm ERR! 404 
npm ERR! 404 'web-view' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'atom-ungit'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-11556-5285-fcnv4c/npm-debug.log

Package.activateResources is deprecated.

The context menu CSON format has changed. Please see
https://atom.io/docs/api/latest/ContextMenuManager

if (!_.isArray(value)) {
  deprecate("The context menu CSON format has changed. Please see\nhttps://atom.io/docs/api/latest/ContextMenuManager#context-menu-cson-format\nfor more info.", {
    packageName: this.name
  });
  itemsBySelector = atom.contextMenu.convertLegacyItemsBySelector(itemsBySelector);
}

Looks like the context menus selector values should always be arrays. See https://github.com/atom/tabs/blob/master/menus/tabs.cson#L17-L19 for example.

Ungit Dependency To Hide Header

Changing the dependency of Ungit to the commit that takes care of hiding header based on a query parameter as discussed here. This will make #8 meaningful.

ungit not opens

I installed atom + ungit and try to open it, but nothing happens. No error message and no ungit tab.

How could it be debugged / fixed?

Can't launch atom-ungit

Hi,
I've just installed atom-ungit, but when I launch it, I get this error:
Uncaught TypeError: Cannot read property 'href' of null
It's located at line 70 in file atom-ungit/lib/atom-ungit.coffee
I hope, you would be able to fix it,
Thanks.

Multi-Folder Support

Now that Atom has support for multiple folders in a single window, Ungit should seamlessly switch the context when the project folder is switched. It might already be working, but I can't use Atom-Ungit these days because of the issue #24.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.