Ian Tommins

  • Reviews needed
Menu
  • Reviews needed
Line endings for Drupal in git
  • Line endings for Drupal in git

    Rather than using

    git config core.autocrlf input

    to control line endings, which has to be done per-user and feels a bit magical (i.e. I don’t really understand what it’s doing), you can set them on a per-repository and per file type basis. This avoids problems with users having different configurations and with git incorrectly guessing whether a file is text or binary.

    All you need to do is put an appropriate .gitattributes file in the root of your repository. Drupal 8 will ship with one, and it should work well for Drupal 7 too. You can download it from:

    http://drupalcode.org/project/drupal.git/blob_plain/refs/heads/8.x:/.gitattributes

    Categories: Drupal

    Tags: git, line endinds

    Features 7.x-2.x Is blocking 3rd party tracking cookies desirable?

Recent Posts
  • Introducing peer review
  • UrlParams
  • UK National Skydiving Championships
  • Let’s get frozen (the future of our legacy APIs)
  • RE: Drupal 8: Hello, Configuration Management
Recent Comments
    Archives
    • November 2017
    • October 2015
    • August 2015
    • February 2014
    • August 2013
    • July 2013
    • June 2013
    • May 2013
    • July 2012
    Categories
    • Drupal
    • Uncategorized
    • Web development
    Tags
    @deprecated apache cmi contrib cookies drupal-planet features git gotcha jquery line endinds mozilla firefox privacy
    Meta
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org

    Copyright © 2014 Ian Thomas

    Theme created by PWT. Powered by WordPress.org