Code Monkey home page Code Monkey logo

building-git-typescript's People

Contributors

dependabot[bot] avatar r-tamura avatar

Watchers

 avatar  avatar

building-git-typescript's Issues

git logの日時表示が正しく表示されない

How to reproduce

$ kit init
$ echo "one" > 1.txt
$ git add 1.txt
$ GIT_AUTHOR_NAME=auuu GIT_AUTHOR_EMAIL='[email protected]' kit commit
first  <-- ctrl + D
[(root-commit) be4baaf73007190adc5cca1c1cefa7b666dc0bcb]
# git, not kit
$ git log

expected

displays date time proeprly.

commit be4baaf73007190adc5cca1c1cefa7b666dc0bcb (HEAD -> master)
Author: auuu <[email protected]>
Date:   Thr May 28 22:59:29 2020 +0900

actual

commit be4baaf73007190adc5cca1c1cefa7b666dc0bcb (HEAD -> master)
Author: auuu <[email protected]>
Date:   Thu Jan 1 00:00:00 1970 +0000
  • jitコマンド場合
jit log                                                          
fatal: invalid date or strptime format - `1590674369.157 +0900' `%s %z'

source map対応

エラーが発生したときにTypeScriptファイルソースコード位置を出力するように

gitのindexファイルとチェックサムが一致しない

How to reproduce the issue

Welcome to Node.js v14.0.0.
Type ".help" for more information.
> const Index = require("./src/gindex")
undefined
> const index = new Index(".git/index")
Uncaught TypeError: Index is not a constructor
> const ind = new Index.Index(".git/index")
undefined
> ind
Index {}
> ind.load()
Promise { <pending> }
> (node:60923) UnhandledPromiseRejectionWarning: Invalid: Checksum does not match value stored on disk
    at Checksum.<anonymous> (/Users/r-tamura/Documents/work/lab/git-internal/src/gindex/checksum.js:63:23)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/r-tamura/Documents/work/lab/git-internal/src/gindex/checksum.js:5:58)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:60923) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:60923) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
> process.exit()

mergeコマンドのメッセージがgitと異なる

How to reproduce

kit init
echo '1.txt' > f.txt
kit add .
kit init
kit add f.txt
kit commit -m "A"
echo '2' > g.txt
kit add g.txt
kit commit -m "B"
kit checkout master^
kit branch topic
kit checkout topic
echo '3' > g.txt
kit add g.txt
kit commit -m "C"
kit checkout master
kit merge topic -m "M"
kit status

expected

no changes added to commit

actual

nothing to commit, working tree clean

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.