2.0.2 • Published 3 years ago

is-git-dirty v2.0.2

Weekly downloads
11,137
License
MIT
Repository
github
Last release
3 years ago

is-git-dirty

Build Status Build status Coverage Status

Checks synchronously if the git repository is clean. This assumes that no files are added, untracked or modified.

Installation

$ npm i is-git-dirty --save

or

$ yarn add is-git-dirty

Usage

Returns:

  • null: Directory is not a git repository
  • true: Files are added, untracked or modified
  • false: No files are added, untracked or modified. Git is clean
import isGitDirty from 'is-git-dirty';

isGitDirty(); // true or false of process.cwd()
isGitDirty('any/git/repo'); // true or false

LICENSE

MIT © Jan Peer Stöcklmair

easy-select-rnreact-native-bluetooth2@starikcetin/git-upm-publisher-2airscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-moduledeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdkreact-native-printer-brothersreact-native-shekhar-bridge-test@oiti/documentoscopy-react-nativequoc-test@infinitebrahmanuniverse/nolb-is-gluminos-ui-core@everything-registry/sub-chunk-1933jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-librarytest-library-123test-haptik-libwifi_configuration_packagetest-zeo-collectvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvantiq-reactvue-api-generator@praella/localisationistjrennsoh88-react-native-scroll-indicatorjesh-calculationjordy-frijters-test-libkhaled-salem-custom-components@wecraftapps/react-native-use-keyboard@tlgeo/react-native-gdal@thinxviewx/core-rn@yplabs-ltd/react-native-detector@zotasys/nativeagent-get-agentact_mvvm_shop_cartawesome-module-kdarchlibrary@googlemaps/github-policy-bot@aysea/react-native-ui-library@azalpacir/react-native-dhp-printer@happy-gastro/react-native-printer-module@_nomtek/react-native-shimmer-animation@ahmed_shaban123/react-native-currencyinput@adatechnology/react-native-android-getnet-pos@adembacaj/react-native-google-pay@con-test/react-native-concent-common@ali5049/react-native-buttons@corelmax/react-native-my2c2p-sdk@hawkingnetwork/react-native-tab-view@amirdiafi/react-native-ios-haptics@hbglobal/react-native-actions-shortcutsjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwytest_lib_module_aarquickcapture_react_nativern-agora-ios-mreact-native-omental-frameworkreact-native-sixdee_test_lib@alanastor/robylon-react-native-sdk@bitgenics/fab-upload-cli@brantalikp/rn-resize@belloai/git-sync-by-temp-branchyarn-react-hook-form@labiebhn_/react-native-multiplier@lehuyaa/my-assets@nandorojo/lint-expo@navabi/react-native-ssl-pinning@react-native-ui-design/button@saad27/react-native-bottom-tab-tour@riseup/universal@ponchodien/react-native-printer-imin@phong95/react-native-multiple-image-picker@sephriot/react-native-persistable-urinative-apple-loginnative-kakao-loginnative-google-loginnative-date-picker-modulenative-modal-damage-vehicleori-bot-react-nativenpm_qwertynpm_one_12_34_1_npm_one_1_2_3npm_one_2_2payutestingreact-native-auth-service-clientreact-native-android-video-player-viewreact-native-android-view
2.0.2

3 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

7 years ago